Trait 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§