pub struct State<K, V> { /* private fields */ }
Expand description
State is an abstract object that allows a particular kind of state to be associated with some data.
Implementations§
Trait Implementations§
Source§impl<K: Ord, V: Ord> Ord for State<K, V>
impl<K: Ord, V: Ord> Ord for State<K, V>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<K: PartialOrd, V: PartialOrd> PartialOrd for State<K, V>
impl<K: PartialOrd, V: PartialOrd> PartialOrd for State<K, V>
impl<K: Copy, V: Copy> Copy for State<K, V>
impl<K: Eq, V: Eq> Eq for State<K, V>
impl<K, V> StructuralPartialEq for State<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for State<K, V>where
V: Freeze,
impl<K, V> RefUnwindSafe for State<K, V>where
V: RefUnwindSafe,
K: RefUnwindSafe,
impl<K, V> Send for State<K, V>
impl<K, V> Sync for State<K, V>
impl<K, V> Unpin for State<K, V>
impl<K, V> UnwindSafe for State<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