pub trait AsContext {
type UserState;
// Required method
fn as_context(&self) -> StoreContext<'_, Self::UserState>;
}Expand description
A trait used to get shared access to a Store in wasmi.
Required Associated Types§
Required Methods§
sourcefn as_context(&self) -> StoreContext<'_, Self::UserState>
fn as_context(&self) -> StoreContext<'_, Self::UserState>
Returns the store context that this type provides access to.