pub struct LwwDot {
pub timestamp: u64,
pub replica: u64,
}Expand description
Total-order dot for last-writer-wins registers.
Fields§
§timestamp: u64§replica: u64Trait Implementations§
impl Copy for LwwDot
impl Eq for LwwDot
Source§impl Ord for LwwDot
impl Ord for LwwDot
Source§fn cmp(&self, other: &LwwDot) -> Ordering
fn cmp(&self, other: &LwwDot) -> Ordering
This method returns an
Ordering between self and other. Read more1.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
1.50.0 (const: unstable) · Source§fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized,
Restrict a value to a certain interval. Read more
Source§impl PartialOrd for LwwDot
impl PartialOrd for LwwDot
Source§fn partial_cmp(&self, other: &LwwDot) -> Option<Ordering>
fn partial_cmp(&self, other: &LwwDot) -> Option<Ordering>
This method returns an ordering between
self and other values if one exists. Read more1.0.0 (const: unstable) · Source§fn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
Tests less than (for
self and other) and is used by the < operator. Read more1.0.0 (const: unstable) · Source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
Tests less than or equal to (for
self and other) and is used by the
<= operator. Read more1.0.0 (const: unstable) · Source§fn gt(&self, other: &Rhs) -> bool
fn gt(&self, other: &Rhs) -> bool
Tests greater than (for
self and other) and is used by the >
operator. Read more1.0.0 (const: unstable) · Source§fn ge(&self, other: &Rhs) -> bool
fn ge(&self, other: &Rhs) -> bool
Tests greater than or equal to (for
self and other) and is used by
the >= operator. Read moreimpl StructuralPartialEq for LwwDot
Auto Trait Implementations§
impl Freeze for LwwDot
impl RefUnwindSafe for LwwDot
impl Send for LwwDot
impl Sync for LwwDot
impl Unpin for LwwDot
impl UnsafeUnpin for LwwDot
impl UnwindSafe for LwwDot
Blanket Implementations§
Source§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
Source§fn type_id(&self) -> TypeId
fn type_id(&self) -> TypeId
Gets the
TypeId of self. Read moreSource§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
Source§fn borrow(&self) -> &T
fn borrow(&self) -> &T
Immutably borrows from an owned value. Read more
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§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Performs copy-assignment from
self to dest. Read moreSource§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
Source§fn into(self) -> U
fn into(self) -> U
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.