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 implement GetFieldOffset<(N0, N1, ...)> for all types without blowing up the time that cargo doc takes to run.

Traits§

Type Aliases§

  • Gets the alignment of a public field in the GetPubFieldOffset<FN> impl for This.
  • Gets the privacy of a field in the GetFieldOffset<FN> impl for This.
  • Gets the type of a public field in the GetPubFieldOffset<FN> impl for This.
  • Gets the alignment of a (potentially) private field in the GetFieldOffset<FN> impl for This.
  • Gets the type of a (potentially) private field in the GetFieldOffset<FN> impl for This.