pub(crate) struct LayoutField<'a> {
pub name: &'a Ident,
pub ty: &'a Type,
pub kind: FieldKind<'a>,
pub assigned_slot: SlotAssignment,
}Expand description
A single field in the storage layout with computed slot information.
Fields§
§name: &'a IdentField name
ty: &'a TypeField type
kind: FieldKind<'a>Field kind (Direct or Mapping)
assigned_slot: SlotAssignmentThe assigned storage slot for this field (or base for const-eval chain)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for LayoutField<'a>
impl<'a> RefUnwindSafe for LayoutField<'a>
impl<'a> !Send for LayoutField<'a>
impl<'a> !Sync for LayoutField<'a>
impl<'a> Unpin for LayoutField<'a>
impl<'a> UnwindSafe for LayoutField<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 72 bytes