Expand description
Trait for getting the FieldOffset of a field, and related items.
One would implement the ImplsGetFieldOffset and GetFieldOffset traits,
and use GetPubFieldOffset as a bound.
Structs§
- Field
Offset With Vis - A wrapper around a
FieldOffset, with a visibility type parameter (whether the field is pub or not). - Impl
GetNested Field Offset - Hack use by
repr_offsetto implementGetFieldOffset<(N0, N1, ...)>for all types without blowing up the time thatcargo doctakes to run.
Traits§
- GetField
Offset - For getting the offset of a field given its name.
- GetPub
Field Offset - An alias of the
GetFieldOffsettrait for public fields. - Impls
GetField Offset - Marker trait for types that implement
GetFieldOffset.
Type Aliases§
- Field
Alignment - Gets the alignment of a public field in the
GetPubFieldOffset<FN>impl forThis. - Field
Privacy - Gets the privacy of a field in the
GetFieldOffset<FN>impl forThis. - Field
Type - Gets the type of a public field in the
GetPubFieldOffset<FN>impl forThis. - Priv
Field Alignment - Gets the alignment of a (potentially) private field in the
GetFieldOffset<FN>impl forThis. - Priv
Field Type - Gets the type of a (potentially) private field in the
GetFieldOffset<FN>impl forThis.