pub trait WasmEngine:
'static
+ Clone
+ Sized {
type ExternRef: WasmExternRef<Self>;
type Func: WasmFunc<Self>;
type Global: WasmGlobal<Self>;
type Instance: WasmInstance<Self>;
type Memory: WasmMemory<Self>;
type Module: WasmModule<Self>;
type Store<T>: WasmStore<T, Self>;
type StoreContext<'a, T: 'a>: WasmStoreContext<'a, T, Self>;
type StoreContextMut<'a, T: 'a>: WasmStoreContextMut<'a, T, Self>;
type Table: WasmTable<Self>;
}
Expand description
Provides a backing implementation for a WebAssembly runtime.
Required Associated Types§
Sourcetype ExternRef: WasmExternRef<Self>
type ExternRef: WasmExternRef<Self>
The external reference type.
Sourcetype Global: WasmGlobal<Self>
type Global: WasmGlobal<Self>
The global type.
Sourcetype Instance: WasmInstance<Self>
type Instance: WasmInstance<Self>
The instance type.
Sourcetype Memory: WasmMemory<Self>
type Memory: WasmMemory<Self>
The memory type.
Sourcetype Module: WasmModule<Self>
type Module: WasmModule<Self>
The module type.
Sourcetype StoreContext<'a, T: 'a>: WasmStoreContext<'a, T, Self>
type StoreContext<'a, T: 'a>: WasmStoreContext<'a, T, Self>
The store context type.
Sourcetype StoreContextMut<'a, T: 'a>: WasmStoreContextMut<'a, T, Self>
type StoreContextMut<'a, T: 'a>: WasmStoreContextMut<'a, T, Self>
The mutable store context type.
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.