Expand description
§Glorified offsets for arbitrary structures
Why write foo.bar
, when you could write
offset_of!(<Foo>::bar).index_in(foo)
?
Macros§
- field_
ptr - Returns a pointer to a field of a base pointer.
- offset_
of - Constructs an offset from a type and a field name.
Structs§
- Offset
- An offset, representing a value of type
Field
into a value of typeBase
.