pub struct Store<T> { /* private fields */ }
Expand description
A store for the Engine
, which stores host-defined data T
and internal
state.
Trait Implementations§
Source§impl<T> AsContext<Engine> for Store<T>
impl<T> AsContext<Engine> for Store<T>
Source§fn as_context(&self) -> StoreContext<'_, T>
fn as_context(&self) -> StoreContext<'_, T>
Returns the store context that this type provides access to.
Source§impl<T> AsContextMut<Engine> for Store<T>
impl<T> AsContextMut<Engine> for Store<T>
Source§fn as_context_mut(&mut self) -> StoreContextMut<'_, T>
fn as_context_mut(&mut self) -> StoreContextMut<'_, T>
Returns the store context that this type provides access to.
Auto Trait Implementations§
impl<T> Freeze for Store<T>
impl<T> RefUnwindSafe for Store<T>where
T: RefUnwindSafe,
impl<T> Send for Store<T>where
T: Send,
impl<T> Sync for Store<T>where
T: Sync,
impl<T> Unpin for Store<T>where
T: Unpin,
impl<T> UnwindSafe for Store<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more