Skip to content

Expand and organize offset_of! documentation.#138323

Merged
bors merged 2 commits intorust-lang:masterfrom
kpreid:offset-of-doc
Mar 16, 2025
Merged

Expand and organize offset_of! documentation.#138323
bors merged 2 commits intorust-lang:masterfrom
kpreid:offset-of-doc

Conversation

@kpreid
Copy link
Contributor

@kpreid kpreid commented Mar 10, 2025

  • Give example of how to get the offset of an unsized tail field (prompted by discussion Expand CloneToUninit documentation. #133055 (comment)).
  • Specify the return type.
  • Add section headings.
  • Reduce “Visibility is respected…”, to a single sentence.
  • Move offset_of_enum documentation to unstable book (with link to it).
  • Add offset_of_slice documentation in unstable book.

r? Mark-Simulacrum

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants