pub(crate) enum FieldKind<'a> {
Slot(&'a Type),
Mapping {
key: &'a Type,
value: &'a Type,
},
NestedMapping {
key1: &'a Type,
key2: &'a Type,
value: &'a Type,
},
}Expand description
Classification of a field based on its type
Variants§
Slot(&'a Type)
Fields with a direct slot allocation, either single or multi (Slot<V>).
Mapping
Single-level mapping (Mapping<K, V>)
NestedMapping
Nested mapping (Mapping<K1, Mapping<K2, V>>)
Trait Implementations§
impl<'a> Copy for FieldKind<'a>
Auto Trait Implementations§
impl<'a> Freeze for FieldKind<'a>
impl<'a> RefUnwindSafe for FieldKind<'a>
impl<'a> !Send for FieldKind<'a>
impl<'a> !Sync for FieldKind<'a>
impl<'a> Unpin for FieldKind<'a>
impl<'a> UnwindSafe for FieldKind<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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: 32 bytes
Size for each variant:
Slot: 8 bytesMapping: 16 bytesNestedMapping: 24 bytes