Trait AsStoreMut

pub(crate) trait AsStoreMut: AsStoreRef {
    // Required methods
    fn as_store_mut(&mut self) -> StoreMut<'_>;
    fn objects_mut(&mut self) -> &mut StoreObjects;
}
Expand description

Helper trait for a value that is convertible to a [StoreMut].

Required Methods§

fn as_store_mut(&mut self) -> StoreMut<'_>

Returns a StoreMut pointing to the underlying context.

fn objects_mut(&mut self) -> &mut StoreObjects

Returns the ObjectMutable

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

§

impl AsStoreMut for Store

§

impl AsStoreMut for StoreAsyncWriteLock

§

impl AsStoreMut for StoreMut<'_>

§

impl<P> AsStoreMut for P
where P: DerefMut, <P as Deref>::Target: AsStoreMut,

§

impl<T> AsStoreMut for FunctionEnvMut<'_, T>

§

impl<T> AsStoreMut for AsyncFunctionEnvHandleMut<T>
where T: 'static,