Crate field_offset
source · [−]Macros
This macro allows safe construction of a FieldOffset, by generating a known to be valid lambda to pass to the constructor. It takes a type and the identifier of a field within that type as input.
Structs
Represents a pointer to a field of type U
within the type T
Enums
Type that can be used in the PinFlag
parameter of FieldOffset
to specify that
this projection is valid on Pin types.
See documentation of FieldOffset::new_from_offset_pinned
Type that can be used in the PinFlag
parameter of FieldOffset
to specify that
this projection is not valid on Pin types.