pub struct Vm { /* private fields */ }Expand description
The Ion virtual machine.
Implementations§
Source§impl Vm
impl Vm
pub fn new() -> Self
Sourcepub fn with_env(env: Env) -> Self
pub fn with_env(env: Env) -> Self
Create a VM with an existing environment (for engine integration).
Sourcepub fn set_types(&mut self, types: TypeRegistry)
pub fn set_types(&mut self, types: TypeRegistry)
Set the type registry for host type construction.
Sourcepub fn preload_fn_chunks(&mut self, chunks: FnChunkCache)
pub fn preload_fn_chunks(&mut self, chunks: FnChunkCache)
Pre-populate the function cache with precompiled chunks from the compiler.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Vm
impl !RefUnwindSafe for Vm
impl !Send for Vm
impl !Sync for Vm
impl Unpin for Vm
impl UnsafeUnpin for Vm
impl !UnwindSafe for Vm
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