pub struct StatePair(pub State, pub Option<State>);Tuple Fields§
§0: State§1: Option<State>Implementations§
Trait Implementations§
impl Copy for StatePair
Source§impl<'de> Deserialize<'de> for StatePair
impl<'de> Deserialize<'de> for StatePair
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for StatePair
Source§impl From<&StatePair> for ActivityState
impl From<&StatePair> for ActivityState
Source§impl From<StatePair> for ActivityState
impl From<StatePair> for ActivityState
Source§impl Ord for StatePair
impl Ord for StatePair
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for StatePair
impl PartialOrd for StatePair
impl StructuralPartialEq for StatePair
Auto Trait Implementations§
impl Freeze for StatePair
impl RefUnwindSafe for StatePair
impl Send for StatePair
impl Sync for StatePair
impl Unpin for StatePair
impl UnsafeUnpin for StatePair
impl UnwindSafe for StatePair
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