pub struct TableModel<'a> {
pub desc: &'a TableDesc,
pub ident: String,
pub screaming: String,
pub key: U64Split,
pub schema: U64Split,
pub fields: Vec<FieldModel<'a>>,
pub event_enum: Option<EventEnumModel>,
}Expand description
One word table, validated once so every host constructor accepts its field specs.
Fields§
§desc: &'a TableDesc§ident: Stringnv.text_input -> TextInput (hosts nest it under NvTables).
screaming: Stringnv.text_input -> TEXT_INPUT (C macro / Java constant prefix).
key: U64Split§schema: U64Split§fields: Vec<FieldModel<'a>>§event_enum: Option<EventEnumModel>Implementations§
Source§impl TableModel<'_>
impl TableModel<'_>
pub fn dense(&self) -> bool
Sourcepub fn events_word(&self) -> u8
pub fn events_word(&self) -> u8
Word of the EventSet<E> listener mask, or NO_VAL_WORD.
Sourcepub fn resource_fields(
&self,
) -> impl Iterator<Item = (&FieldModel<'_>, U64Split)>
pub fn resource_fields( &self, ) -> impl Iterator<Item = (&FieldModel<'_>, U64Split)>
Resource fields with their FlatResource::KIND.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for TableModel<'a>
impl<'a> Freeze for TableModel<'a>where
&'a TableDesc: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<FieldModel<'a>>: Freeze,
PhantomData<(&'static str, u32, u32)>: Freeze,
impl<'a> Move for TableModel<'a>
impl<'a> RefUnwindSafe for TableModel<'a>
impl<'a> Send for TableModel<'a>
impl<'a> Sync for TableModel<'a>where
RawVecInner: Sync,
impl<'a> Unpin for TableModel<'a>
impl<'a> UnsafeUnpin for TableModel<'a>where
&'a TableDesc: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<FieldModel<'a>>: UnsafeUnpin,
PhantomData<(&'static str, u32, u32)>: UnsafeUnpin,
impl<'a> UnwindSafe for TableModel<'a>where
&'a TableDesc: UnwindSafe,
RawVecInner: UnwindSafe,
&'a FieldDesc: UnwindSafe,
&'static str: 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