A trait used to get shared access to a
Store in Wasmtime.
This trait is used as a bound on the first argument of many methods within
Wasmtime. This trait is implemented for types like
StoreContext itself. Implementors of this
trait provide access to a
StoreContext via some means, allowing the
method in question to get access to the store’s internal information.
Note that this is only used in contexts where the store’s information is
read, but not written. For example methods that return type information will
use this trait as a bound. More commonly, though, mutation is required and
AsContextMut is needed.
Returns the store context that this type provides access to.