pub struct RuntimeAbiModel<'a> {
pub file: &'a AbiFileDescriptor,
pub hash: U64Split,
pub records: Vec<RecordLayout<'a>>,
/* private fields */
}Expand description
The embedding-host runtime ABI (nv_runtime_abi.generated.h), rendered on top of the Core
header it includes: its records must not redeclare any record of base.
Fields§
§file: &'a AbiFileDescriptor§hash: U64Split§records: Vec<RecordLayout<'a>>Implementations§
Source§impl<'a> RuntimeAbiModel<'a>
impl<'a> RuntimeAbiModel<'a>
Sourcepub fn new(
file: &'a AbiFileDescriptor,
base: &AbiModel<'a>,
) -> Result<Self, CodegenError>
pub fn new( file: &'a AbiFileDescriptor, base: &AbiModel<'a>, ) -> Result<Self, CodegenError>
Validates file (every record, alias, callback, and vtable slot) on top of base, whose
records/aliases/callbacks the runtime ABI may reference.
pub fn scene_view(&self) -> &RecordLayout<'a>
pub fn scene_fact(&self) -> &RecordLayout<'a>
pub fn vtable(&self) -> &'a AbiVtableDescriptor
pub fn vtable_header_fields(&self) -> &[FieldLayout<'a>]
pub fn vtable_slots_offset(&self) -> &Width
pub fn slots(&self) -> &'a [AbiMethodDescriptor]
pub fn required_slots(&self) -> Vec<&'a AbiMethodDescriptor>
pub fn all_aliases(&self) -> &[AbiAliasDescriptor]
pub fn all_callbacks(&self) -> &[&'a str]
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for RuntimeAbiModel<'a>
impl<'a> Freeze for RuntimeAbiModel<'a>where
&'a AbiFileDescriptor: Freeze,
*const u8 is !null: Freeze,
PhantomData<RecordLayout<'a>>: Freeze,
PhantomData<AbiAliasDescriptor>: Freeze,
PhantomData<&'a str>: Freeze,
PhantomData<VtableHeaderLayout<'a>>: Freeze,
impl<'a> Move for RuntimeAbiModel<'a>
impl<'a> RefUnwindSafe for RuntimeAbiModel<'a>
impl<'a> Send for RuntimeAbiModel<'a>where
&'a AbiFileDescriptor: Send,
RawVecInner: Send,
&'a str: Send,
&'a AbiFieldDescriptor: Send,
&'static str: Send,
impl<'a> Sync for RuntimeAbiModel<'a>where
RawVecInner: Sync,
impl<'a> Unpin for RuntimeAbiModel<'a>
impl<'a> UnsafeUnpin for RuntimeAbiModel<'a>where
&'a AbiFileDescriptor: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<RecordLayout<'a>>: UnsafeUnpin,
PhantomData<AbiAliasDescriptor>: UnsafeUnpin,
PhantomData<&'a str>: UnsafeUnpin,
PhantomData<VtableHeaderLayout<'a>>: UnsafeUnpin,
impl<'a> UnwindSafe for RuntimeAbiModel<'a>where
&'a AbiFileDescriptor: UnwindSafe,
RawVecInner: UnwindSafe,
&'a str: UnwindSafe,
&'a AbiFieldDescriptor: 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