pub struct AbiModel<'a> {
pub core: &'a AbiFileDescriptor,
pub core_hash: U64Split,
pub records: Vec<RecordLayout<'a>>,
/* private fields */
}Expand description
The Core ABI (nv_abi.generated.h): app-module vtables, values, events, and the word-table
view every scene reader indexes.
Fields§
§core: &'a AbiFileDescriptor§core_hash: U64Split§records: Vec<RecordLayout<'a>>Core records with their 32-bit and 64-bit C layouts.
Implementations§
Source§impl<'a> AbiModel<'a>
impl<'a> AbiModel<'a>
pub fn new(core: &'a AbiFileDescriptor) -> Result<Self, CodegenError>
pub fn table_view(&self) -> &RecordLayout<'a>
pub fn consts(&self) -> impl Iterator<Item = &'a AbiConstDescriptor> + use<'a>
pub fn enums(&self) -> impl Iterator<Item = &'a AbiEnumDescriptor> + use<'a>
pub fn all_aliases(&self) -> &'a [AbiAliasDescriptor]
pub fn all_callbacks(&self) -> &[&'a str]
Sourcepub fn modules(&self) -> impl Iterator<Item = &'a AbiVtableDescriptor> + use<'a>
pub fn modules(&self) -> impl Iterator<Item = &'a AbiVtableDescriptor> + use<'a>
Modular nv_get_interface vtables (NvSurfaceApi..NvHostApi).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for AbiModel<'a>
impl<'a> Freeze for AbiModel<'a>where
&'a AbiFileDescriptor: Freeze,
*const u8 is !null: Freeze,
PhantomData<RecordLayout<'a>>: Freeze,
PhantomData<&'a str>: Freeze,
impl<'a> Move for AbiModel<'a>
impl<'a> RefUnwindSafe for AbiModel<'a>
impl<'a> Send for AbiModel<'a>
impl<'a> Sync for AbiModel<'a>where
RawVecInner: Sync,
impl<'a> Unpin for AbiModel<'a>where
&'a AbiFileDescriptor: Unpin,
*const u8 is !null: Unpin,
&'a str: Unpin,
&'a AbiFieldDescriptor: Unpin,
impl<'a> UnsafeUnpin for AbiModel<'a>where
&'a AbiFileDescriptor: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<RecordLayout<'a>>: UnsafeUnpin,
PhantomData<&'a str>: UnsafeUnpin,
impl<'a> UnwindSafe for AbiModel<'a>where
&'a AbiFileDescriptor: UnwindSafe,
RawVecInner: UnwindSafe,
&'a str: UnwindSafe,
&'a AbiFieldDescriptor: 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