pub trait WasmStore<T, E: WasmEngine>: AsContext<E, UserState = T> + AsContextMut<E, UserState = T> {
// Required methods
fn new(engine: &E, data: T) -> Self;
fn engine(&self) -> &E;
fn data(&self) -> &T;
fn data_mut(&mut self) -> &mut T;
fn into_data(self) -> T;
}
Expand description
Provides all of the global state that can be manipulated by WASM programs.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.