pub struct StateId(pub NonZeroU64);
Expand description
State identifier. Represents an actual system state.
The identifier has 64 bits so there is no realistic possibility of overflow. Even generating states at a rate of 10 giga per second, it would take 58.45 years to overflow.
Tuple Fields§
§0: NonZeroU64
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StateId
impl<'de> Deserialize<'de> for StateId
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
Source§impl Ord for StateId
impl Ord for StateId
Source§impl PartialOrd for StateId
impl PartialOrd for StateId
impl Copy for StateId
impl Eq for StateId
impl StructuralPartialEq for StateId
Auto Trait Implementations§
impl Freeze for StateId
impl RefUnwindSafe for StateId
impl Send for StateId
impl Sync for StateId
impl Unpin for StateId
impl UnwindSafe for StateId
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