pub struct StoreContext<'a, T: 'static> { /* private fields */ }Expand description
Immutable context to the store
Implementations§
Source§impl<'a, T: 'static> StoreContext<'a, T>
impl<'a, T: 'static> StoreContext<'a, T>
Sourcepub fn from_ref(store: &'a StoreInner<T>) -> Self
pub fn from_ref(store: &'a StoreInner<T>) -> Self
Provides a store context from a reference
Trait Implementations§
Source§impl<'a, T: 'static> AsContext<Engine> for StoreContext<'a, T>
impl<'a, T: 'static> AsContext<Engine> for StoreContext<'a, 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: 'static> Deref for StoreContext<'_, T>
impl<T: 'static> Deref for StoreContext<'_, T>
Auto Trait Implementations§
impl<'a, T> Freeze for StoreContext<'a, T>
impl<'a, T> !RefUnwindSafe for StoreContext<'a, T>
impl<'a, T> !Send for StoreContext<'a, T>
impl<'a, T> !Sync for StoreContext<'a, T>
impl<'a, T> Unpin for StoreContext<'a, T>
impl<'a, T> !UnwindSafe for StoreContext<'a, T>
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