#[repr(transparent)]
pub struct StoreContext<'a, T>(_);
Expand description

A temporary handle to a &Store<T>.

This type is sutable for AsContext trait bounds on methods if desired. For more information, see Store.

Implementations

Returns the underlying Engine this store is connected to.

Returns an InterruptHandle to interrupt wasm execution.

See Store::interrupt_handle for more information.

Access the underlying data owned by this Store.

Same as Store::data.

Returns the fuel consumed by this store.

For more information see Store::fuel_consumed.

Trait Implementations

The host information associated with the Store, aka the T in Store<T>. Read more

Returns the store context that this type provides access to.

Performs the conversion.

Performs the conversion.

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more