pub struct FieldModel<'a> {
pub desc: &'a FieldDesc,
pub bits: u8,
pub val_word: u8,
pub explicit_bit: u8,
pub inherits: bool,
pub resource_kind: Option<U64Split>,
}Expand description
One field as every host FieldSpec spells it.
Fields§
§desc: &'a FieldDesc§bits: u8Host bit width: a two-word field (Str, 64-bit) is bits = 64 in Rust but (shift 0, bits 32) on every host (the second word is implied by the kind).
val_word: u8OptEncoding::WideBit value word (word / shift hold the presence bit), else
NO_VAL_WORD.
explicit_bit: u8Bit of the field in an inherited table’s explicit mask (word 0), else NO_VAL_WORD.
inherits: boolAn unset value resolves from the parent row (inherited table, not #[no_inherit]).
resource_kind: Option<U64Split>FlatResource::KIND of a Resource field.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for FieldModel<'a>
impl<'a> Freeze for FieldModel<'a>
impl<'a> Move for FieldModel<'a>
impl<'a> RefUnwindSafe for FieldModel<'a>
impl<'a> Send for FieldModel<'a>
impl<'a> Sync for FieldModel<'a>
impl<'a> Unpin for FieldModel<'a>
impl<'a> UnsafeUnpin for FieldModel<'a>where
&'a FieldDesc: UnsafeUnpin,
impl<'a> UnwindSafe for FieldModel<'a>where
&'a FieldDesc: UnwindSafe,
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