pub struct StoreContextMut<'a, T> { /* private fields */ }Expand description
A temporary handle to a &mut Store<T>.
This type is suitable for AsContextMut or AsContext trait bounds on methods if desired.
For more information, see Store.
Implementations§
Source§impl<T> StoreContextMut<'_, T>
impl<T> StoreContextMut<'_, T>
Sourcepub fn data(&self) -> &T
pub fn data(&self) -> &T
Access the underlying data owned by this store.
Same as Store::data.
Sourcepub fn data_mut(&mut self) -> &mut T
pub fn data_mut(&mut self) -> &mut T
Access the underlying data owned by this store.
Same as Store::data_mut.
Trait Implementations§
Source§impl<T> AsContext for StoreContextMut<'_, T>
impl<T> AsContext for StoreContextMut<'_, T>
Source§fn as_context(&self) -> StoreContext<'_, Self::Data>
fn as_context(&self) -> StoreContext<'_, Self::Data>
Returns the store context that this type provides access to.
Source§impl<T> AsContextMut for StoreContextMut<'_, T>
impl<T> AsContextMut for StoreContextMut<'_, T>
Source§fn as_context_mut(&mut self) -> StoreContextMut<'_, Self::Data>
fn as_context_mut(&mut self) -> StoreContextMut<'_, Self::Data>
Returns the store context that this type provides access to.
Source§impl<'a, T: Debug> Debug for StoreContextMut<'a, T>
impl<'a, T: Debug> Debug for StoreContextMut<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for StoreContextMut<'a, T>
impl<'a, T> !RefUnwindSafe for StoreContextMut<'a, T>
impl<'a, T> Send for StoreContextMut<'a, T>where
T: Send,
impl<'a, T> Sync for StoreContextMut<'a, T>where
T: Sync,
impl<'a, T> Unpin for StoreContextMut<'a, T>
impl<'a, T> !UnwindSafe for StoreContextMut<'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