Rust Internals
Get the offset of a field from the base of a struct
language design
Unsafe Code Guidelines
JeffBurdges
March 4, 2021, 9:19am
2
See
Need for -> operator for Unsafe Code Guidelines
via
Raw pointer field projection
1 Like
show post in topic
Related Topics
Topic
Replies
Views
Activity
Computing raw pointers to fields
Unsafe Code Guidelines
2
3892
October 21, 2019
Discussion on offset_of!(..)
13
6000
February 2, 2019
Pre-RFC: Struct/union raw pointer field access
language design
11
1987
April 2, 2020
Pre-Pre-RFC: Field offsets
language design
7
1678
March 25, 2019
Raw pointer field projection
5
1297
May 29, 2021