Module repr_offset::get_field_offset
source · 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§
- A wrapper around a
FieldOffset
, with a visibility type parameter (whether the field is pub or not). - Hack use by
repr_offset
to implementGetFieldOffset<(N0, N1, ...)>
for all types without blowing up the time thatcargo doc
takes to run.
Traits§
- For getting the offset of a field given its name.
- An alias of the
GetFieldOffset
trait for public fields. - Marker trait for types that implement
GetFieldOffset
.
Type Aliases§
- Gets the alignment of a public field in the
GetPubFieldOffset<FN>
impl forThis
. - Gets the privacy of a field in the
GetFieldOffset<FN>
impl forThis
. - Gets the type of a public field in the
GetPubFieldOffset<FN>
impl forThis
. - Gets the alignment of a (potentially) private field in the
GetFieldOffset<FN>
impl forThis
. - Gets the type of a (potentially) private field in the
GetFieldOffset<FN>
impl forThis
.