pub struct ProgramData { /* private fields */ }
Expand description
Unlike UnloadedProgram
, this is not Send
(mainly because StringSymbol
is not Send)
Implementations§
Source§impl ProgramData
impl ProgramData
pub fn get_chunk(&self, fun_id: FunctionID) -> &[u8] ⓘ
pub fn chunk_info(&self, fun_id: FunctionID) -> &ChunkInfo
pub fn get_const(&self, index: ConstID) -> &Constant
pub fn get_string(&self, index: StringID) -> &StringSymbol
pub fn get_function(&self, index: FunctionID) -> &FunctionProto
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProgramData
impl RefUnwindSafe for ProgramData
impl !Send for ProgramData
impl !Sync for ProgramData
impl Unpin for ProgramData
impl UnwindSafe for ProgramData
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