pub struct FieldDesc {
pub name: &'static str,
pub kind: FieldKind,
pub opt_encoding: OptEncoding,
pub word: u8,
pub shift: u8,
pub bits: u8,
pub effects: u8,
pub val_word: u8,
pub no_inherit: bool,
pub values: Option<&'static ValueSetDesc>,
}Expand description
One field of a table row.
Fields§
§name: &'static str§kind: FieldKind§opt_encoding: OptEncodingOptionality & bit-encoding strategy (Required for non-optional fields).
word: u8First word (for wide Option<T>, the word holding the 1-bit presence flag).
shift: u8Bit offset inside word (0 for whole-word fields).
bits: u8Bit width inside word (32 for whole-word fields; 64 for Str/64-bit; 1 for wide Option<T> presence bit).
effects: u8Effect class of the field’s words.
val_word: u8Value word for wide Option<T> fields (NO_VAL_WORD for all other fields).
no_inherit: boolTrue when marked #[no_inherit] on an inherited table (explicitly tracked, never inherited).
values: Option<&'static ValueSetDesc>Named values (enum variants / flag bits); not part of the schema hash.
Implementations§
Trait Implementations§
impl Copy for FieldDesc
impl Eq for FieldDesc
impl StructuralPartialEq for FieldDesc
Auto Trait Implementations§
impl Forget for FieldDesc
impl Freeze for FieldDesc
impl Move for FieldDesc
impl RefUnwindSafe for FieldDesc
impl Send for FieldDesc
impl Sync for FieldDesc
impl Unpin for FieldDesc
impl UnsafeUnpin for FieldDesc
impl UnwindSafe for FieldDesc
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