pub struct DecrementDelta<K: Ord + Clone> {
pub replica_id: K,
pub amount: u64,
}Expand description
Delta for decrement operation
Fields§
§replica_id: K§amount: u64Trait Implementations§
Source§impl<K: Clone + Ord + Clone> Clone for DecrementDelta<K>
impl<K: Clone + Ord + Clone> Clone for DecrementDelta<K>
Source§fn clone(&self) -> DecrementDelta<K>
fn clone(&self) -> DecrementDelta<K>
Returns a duplicate 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<'de, K> Deserialize<'de> for DecrementDelta<K>
impl<'de, K> Deserialize<'de> for DecrementDelta<K>
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<K: Ord + Clone> Lattice for DecrementDelta<K>
impl<K: Ord + Clone> Lattice for DecrementDelta<K>
Source§fn join(&self, other: &Self) -> Self
fn join(&self, other: &Self) -> Self
Join operation (least upper bound)
Must be commutative, associative, and idempotent
§fn partial_cmp_lattice(&self, other: &Self) -> Option<Ordering>
fn partial_cmp_lattice(&self, other: &Self) -> Option<Ordering>
Partial order derived from join: a ≤ b iff a ⊔ b = b
§fn join_assign(&mut self, other: &Self)
fn join_assign(&mut self, other: &Self)
Join-assign: self = self ⊔ other
Source§impl<K> Serialize for DecrementDelta<K>
impl<K> Serialize for DecrementDelta<K>
impl<K: Eq + Ord + Clone> Eq for DecrementDelta<K>
impl<K: Ord + Clone> StructuralPartialEq for DecrementDelta<K>
Auto Trait Implementations§
impl<K> Freeze for DecrementDelta<K>where
K: Freeze,
impl<K> RefUnwindSafe for DecrementDelta<K>where
K: RefUnwindSafe,
impl<K> Send for DecrementDelta<K>where
K: Send,
impl<K> Sync for DecrementDelta<K>where
K: Sync,
impl<K> Unpin for DecrementDelta<K>where
K: Unpin,
impl<K> UnwindSafe for DecrementDelta<K>where
K: UnwindSafe,
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