pub struct Engine { /* private fields */ }
Expand description
The Wasmi interpreter.
§Note
- The current Wasmi engine implements a bytecode interpreter.
- This structure is intentionally cheap to copy.
Most of its API has a
&self
receiver, so can be shared easily.
Implementations§
Source§impl Engine
impl Engine
Sourcepub fn new(config: &Config) -> Self
pub fn new(config: &Config) -> Self
Creates a new Engine
with default configuration.
§Note
Users should use Engine::default
to construct a default Engine
.
Sourcepub fn weak(&self) -> EngineWeak
pub fn weak(&self) -> EngineWeak
Creates an EngineWeak
from the given Engine
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Engine
impl !RefUnwindSafe for Engine
impl Send for Engine
impl Sync for Engine
impl Unpin for Engine
impl !UnwindSafe for Engine
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