pub struct CompiledLib { /* private fields */ }Expand description
The compiled AluVM library containing information about the routines.
Implementations§
Source§impl CompiledLib
impl CompiledLib
Sourcepub fn compile<Isa>(
code: impl AsMut<[Isa]>,
deps: &[&CompiledLib],
) -> Result<CompiledLib, CompilerError<Isa>>where
Isa: Instruction<LibId>,
pub fn compile<Isa>(
code: impl AsMut<[Isa]>,
deps: &[&CompiledLib],
) -> Result<CompiledLib, CompilerError<Isa>>where
Isa: Instruction<LibId>,
Compiles a library from the provided instructions by resolving local call pointers first
and then assembling it into a bytecode by calling [Self::assemble].
Sourcepub fn routines_count(&self) -> usize
pub fn routines_count(&self) -> usize
Count the number of routines in the library.
Auto Trait Implementations§
impl Freeze for CompiledLib
impl RefUnwindSafe for CompiledLib
impl Send for CompiledLib
impl Sync for CompiledLib
impl Unpin for CompiledLib
impl UnwindSafe for CompiledLib
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