Trait wasm_runtime_layer::backend::WasmStoreContext

source ·
pub trait WasmStoreContext<'a, T, E: WasmEngine>: AsContext<E, UserState = T> {
    // Required methods
    fn engine(&self) -> &E;
    fn data(&self) -> &T;
}
Expand description

Provides a temporary immutable handle to a store.

Required Methods§

source

fn engine(&self) -> &E

Gets the engine associated with this store.

source

fn data(&self) -> &T

Gets an immutable reference to the underlying stored data.

Implementors§