pub struct TableDesc {Show 15 fields
pub key: Key64,
pub name: &'static str,
pub schema_hash: u64,
pub storage: Storage,
pub flags: u16,
pub realization_priority: u8,
pub defaults: &'static [u32],
pub word_effects: &'static [u8],
pub str_words: u32,
pub resource_words: u32,
pub events_word: u8,
pub events: Option<&'static ValueSetDesc>,
pub inherited: bool,
pub fields: &'static [FieldDesc],
pub resource_kinds: &'static [(u8, Key64)],
}Expand description
Compile-time description of a table, emitted by #[derive(NvTable)].
Fields§
§key: Key64§name: &'static str§schema_hash: u64xxh64 over the canonical field layout; a mismatch across a boundary is a hard error.
storage: Storage§flags: u16§realization_priority: u8Declarative realization priority (0 = non-realizing / modifier table; 1..=255 = realizing
component priority where higher wins and ties break deterministically by TableKey).
defaults: &'static [u32]§word_effects: &'static [u8]Effect class per word (len == defaults.len()).
str_words: u32Bit i set: word i is the offset word of a two-word string reference.
resource_words: u32Bit i set: word i holds a ResourceId.
events_word: u8Word holding the EventSet subscription mask (NO_VAL_WORD if none).
events: Option<&'static ValueSetDesc>Listener bits of that EventSet<E> (EventEnum::EVENT_SET: <E>Set, one
(variant, 1 << id) flag per event), mirrored to hosts; None without events.
inherited: boolTrue when word 0 is the hidden __explicit: u32 bitmask for #[nv_table(inherited)].
fields: &'static [FieldDesc]§resource_kinds: &'static [(u8, Key64)](word_index, FlatResource::KIND) pairs for every Res<R> field in this table.