pub struct LwwEntry<V: Ord> {
pub dot: LwwDot,
pub value: V,
}Expand description
One LWW register assignment.
Fields§
§dot: LwwDot§value: VTrait Implementations§
impl<V: Eq + Ord> Eq for LwwEntry<V>
Source§impl<V: Ord + Ord> Ord for LwwEntry<V>
impl<V: Ord + Ord> Ord for LwwEntry<V>
Source§fn cmp(&self, other: &LwwEntry<V>) -> Ordering
fn cmp(&self, other: &LwwEntry<V>) -> 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<V: PartialEq + Ord> PartialEq for LwwEntry<V>
impl<V: PartialEq + Ord> PartialEq for LwwEntry<V>
Source§fn eq(&self, other: &LwwEntry<V>) -> bool
fn eq(&self, other: &LwwEntry<V>) -> bool
Tests for
self and other values to be equal, and is used by ==.1.0.0 (const: unstable) · Source§fn ne(&self, other: &Rhs) -> bool
fn ne(&self, other: &Rhs) -> bool
Tests for
!=. The default implementation is almost always sufficient,
and should not be overridden without very good reason.Source§impl<V: PartialOrd + Ord> PartialOrd for LwwEntry<V>
impl<V: PartialOrd + Ord> PartialOrd for LwwEntry<V>
Source§fn partial_cmp(&self, other: &LwwEntry<V>) -> Option<Ordering>
fn partial_cmp(&self, other: &LwwEntry<V>) -> 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<V: PartialEq + Ord> StructuralPartialEq for LwwEntry<V>
Auto Trait Implementations§
impl<V> Freeze for LwwEntry<V>where
V: Freeze,
impl<V> RefUnwindSafe for LwwEntry<V>where
V: RefUnwindSafe,
impl<V> Send for LwwEntry<V>where
V: Send,
impl<V> Sync for LwwEntry<V>where
V: Sync,
impl<V> Unpin for LwwEntry<V>where
V: Unpin,
impl<V> UnsafeUnpin for LwwEntry<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for LwwEntry<V>where
V: UnwindSafe,
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.