pub struct ModuleAbiModel<'a> {
pub file: &'a AbiFileDescriptor,
pub records: Vec<RecordLayout<'a>>,
}Expand description
Standalone capability-module C ABI descriptor (nv_<stem>_abi.generated.h), validated with
the same cross-data-model layout engine as AbiModel and RuntimeAbiModel.
Fields§
§file: &'a AbiFileDescriptor§records: Vec<RecordLayout<'a>>Implementations§
Source§impl<'a> ModuleAbiModel<'a>
impl<'a> ModuleAbiModel<'a>
pub fn new(file: &'a AbiFileDescriptor) -> Result<Self, CodegenError>
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]
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for ModuleAbiModel<'a>
impl<'a> Freeze for ModuleAbiModel<'a>where
&'a AbiFileDescriptor: Freeze,
*const u8 is !null: Freeze,
PhantomData<RecordLayout<'a>>: Freeze,
impl<'a> Move for ModuleAbiModel<'a>
impl<'a> RefUnwindSafe for ModuleAbiModel<'a>
impl<'a> Send for ModuleAbiModel<'a>
impl<'a> Sync for ModuleAbiModel<'a>where
RawVecInner: Sync,
impl<'a> Unpin for ModuleAbiModel<'a>where
&'a AbiFileDescriptor: Unpin,
*const u8 is !null: Unpin,
&'a str: Unpin,
&'a AbiFieldDescriptor: Unpin,
impl<'a> UnsafeUnpin for ModuleAbiModel<'a>where
&'a AbiFileDescriptor: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<RecordLayout<'a>>: UnsafeUnpin,
impl<'a> UnwindSafe for ModuleAbiModel<'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