pub trait AsContext {
    type UserState;

    fn as_context(&self) -> StoreContext<'_, Self::UserState>;
}
Expand description

A trait used to get shared access to a Store in wasmi.

Required Associated Types

The user state associated with the Store, aka the T in Store<T>.

Required Methods

Returns the store context that this type provides access to.

Implementations on Foreign Types

Implementors