#[repr(C)]pub struct ProgramDescriptor {
pub magic: u64,
pub abi_version: u32,
pub flags: u32,
pub bytecode: *const u8,
pub bytecode_len: usize,
pub units: *const UnitDescriptor,
pub unit_count: usize,
pub entry_function: u32,
pub entry_module: u32,
}Expand description
The C-layout header of a linked AOT program image, exported by generated
code as the external symbol bamts_program_descriptor.
Fields§
§magic: u64§abi_version: u32§flags: u32Reserved flags; must be zero.
bytecode: *const u8The embedded verified bytecode image.
bytecode_len: usizeThe length of bytecode in bytes.
units: *const UnitDescriptorThe unit table.
unit_count: usizeThe number of units.
entry_function: u32The entry function id (must appear in units with entry_module).
entry_module: u32The entry module id.
Trait Implementations§
Source§impl Clone for ProgramDescriptor
impl Clone for ProgramDescriptor
Source§fn clone(&self) -> ProgramDescriptor
fn clone(&self) -> ProgramDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProgramDescriptor
Auto Trait Implementations§
impl !Send for ProgramDescriptor
impl !Sync for ProgramDescriptor
impl Freeze for ProgramDescriptor
impl RefUnwindSafe for ProgramDescriptor
impl Unpin for ProgramDescriptor
impl UnsafeUnpin for ProgramDescriptor
impl UnwindSafe for ProgramDescriptor
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