Struct wnf::ChangeStamp
source · pub struct ChangeStamp(/* private fields */);
Expand description
The change stamp of a state
This is 0
when the state is created and is increased by 1
on every update to the state.
Several methods on other types deal with change stamps. See their documentations for details:
Implementations§
source§impl ChangeStamp
impl ChangeStamp
Trait Implementations§
source§impl AsMut<u32> for ChangeStamp
impl AsMut<u32> for ChangeStamp
source§impl AsRef<u32> for ChangeStamp
impl AsRef<u32> for ChangeStamp
source§impl Borrow<u32> for ChangeStamp
impl Borrow<u32> for ChangeStamp
source§impl BorrowMut<u32> for ChangeStamp
impl BorrowMut<u32> for ChangeStamp
source§fn borrow_mut(&mut self) -> &mut u32
fn borrow_mut(&mut self) -> &mut u32
Mutably borrows from an owned value. Read more
source§impl Clone for ChangeStamp
impl Clone for ChangeStamp
source§fn clone(&self) -> ChangeStamp
fn clone(&self) -> ChangeStamp
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ChangeStamp
impl Debug for ChangeStamp
source§impl Default for ChangeStamp
impl Default for ChangeStamp
source§fn default() -> ChangeStamp
fn default() -> ChangeStamp
Returns the “default value” for a type. Read more
source§impl Display for ChangeStamp
impl Display for ChangeStamp
source§impl From<ChangeStamp> for u32
impl From<ChangeStamp> for u32
source§fn from(ChangeStamp: ChangeStamp) -> Self
fn from(ChangeStamp: ChangeStamp) -> Self
Converts to this type from the input type.
source§impl From<u32> for ChangeStamp
impl From<u32> for ChangeStamp
source§impl Hash for ChangeStamp
impl Hash for ChangeStamp
source§impl Ord for ChangeStamp
impl Ord for ChangeStamp
source§fn cmp(&self, other: &ChangeStamp) -> Ordering
fn cmp(&self, other: &ChangeStamp) -> Ordering
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 PartialEq<ChangeStamp> for u32
impl PartialEq<ChangeStamp> for u32
source§fn eq(&self, other: &ChangeStamp) -> bool
fn eq(&self, other: &ChangeStamp) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<u32> for ChangeStamp
impl PartialEq<u32> for ChangeStamp
source§impl PartialEq for ChangeStamp
impl PartialEq for ChangeStamp
source§fn eq(&self, other: &ChangeStamp) -> bool
fn eq(&self, other: &ChangeStamp) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ChangeStamp
impl PartialOrd for ChangeStamp
source§fn partial_cmp(&self, other: &ChangeStamp) -> Option<Ordering>
fn partial_cmp(&self, other: &ChangeStamp) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ChangeStamp
impl Eq for ChangeStamp
impl StructuralPartialEq for ChangeStamp
Auto Trait Implementations§
impl Freeze for ChangeStamp
impl RefUnwindSafe for ChangeStamp
impl Send for ChangeStamp
impl Sync for ChangeStamp
impl Unpin for ChangeStamp
impl UnwindSafe for ChangeStamp
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)