pub struct Store<K, V> { /* private fields */ }Expand description
A type-indexed storage container for values in an environment.
This struct allows storing values of any type V indexed by a type key K.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<K, V> Freeze for Store<K, V>where
V: Freeze,
impl<K, V> RefUnwindSafe for Store<K, V>where
V: RefUnwindSafe,
K: RefUnwindSafe,
impl<K, V> Send for Store<K, V>
impl<K, V> Sync for Store<K, V>
impl<K, V> Unpin for Store<K, V>
impl<K, V> UnwindSafe for Store<K, V>where
V: UnwindSafe,
K: 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