Also see this newer thread on the same topic.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
[Pre-RFC] Add a new offset_of macro to core::mem
|
134 | 13534 | December 22, 2024 | |
Get the offset of a field from the base of a struct | 9 | 7349 | December 22, 2024 | |
Pre-Pre-RFC: Field offsets | 7 | 1774 | March 25, 2019 | |
Raw pointer ergonomics
|
22 | 2023 | May 3, 2023 | |
Byte-wise fat pointer arithmetic | 17 | 2138 | October 17, 2020 |