pub struct ProgramData { /* private fields */ }Expand description
Unlike UnloadedProgram, this is not Send (mainly because StringSymbol is not Send)
Implementations
sourceimpl ProgramData
 
impl ProgramData
pub fn get_chunk(&self, fun_id: FunctionID) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [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 RefUnwindSafe for ProgramData
impl !Send for ProgramData
impl !Sync for ProgramData
impl Unpin for ProgramData
impl UnwindSafe for ProgramData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more