Crate field_offset[][src]

Macros

offset_of

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

FieldOffset

Represents a pointer to a field of type U within the type T

Enums

AllowPin

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

NotPinned

Type that can be used in the PinFlag parameter of FieldOffset to specify that this projection is not valid on Pin types.