pub struct Engine { /* private fields */ }Expand description
Global configuration for the WebAssembly interpreter
Can be cheaply cloned and shared across multiple executions and threads.
§Example
use tinywasm::engine::{Config, StackConfig};
use tinywasm::{Engine, Store};
let config = Config::new()
.with_value_stack(StackConfig::dynamic(1024, 16 * 1024))
.with_call_stack(StackConfig::fixed(256));
let engine = Engine::new(config);
let store = Store::new(engine);Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Engine
impl !UnwindSafe for Engine
impl Freeze for Engine
impl Send for Engine
impl Sync for Engine
impl Unpin for Engine
impl UnsafeUnpin 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