Crate const_field_offset[−][src]
Expand description
This crate expose the FieldOffsets
derive macro and the types it uses.
The macro allows to get const FieldOffset for member of a #[repr(C)]
struct.
The FieldOffset
type is re-exported from the field-offset
crate.
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.
Traits
This trait needs to be implemented if you use the #[pin_drop]
attribute. It enables
you to implement Drop for your type safely.
Derive Macros
The macro FieldOffsets adds a FIELD_OFFSETS
associated const to the struct. That
is an object which has fields with the same name as the fields of the original struct,
each field is of type const_field_offset::FieldOffset