pub struct ORSetDelta<T: Ord + Clone> {
pub additions: BTreeMap<T, BTreeSet<Tag>>,
pub removals: BTreeSet<Tag>,
}Expand description
Delta payload for ORSet replication.
Fields§
§additions: BTreeMap<T, BTreeSet<Tag>>New element additions with their tags.
removals: BTreeSet<Tag>Tags that have been removed.
Trait Implementations§
Source§impl<T: Clone + Ord + Clone> Clone for ORSetDelta<T>
impl<T: Clone + Ord + Clone> Clone for ORSetDelta<T>
Source§fn clone(&self) -> ORSetDelta<T>
fn clone(&self) -> ORSetDelta<T>
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, T> Deserialize<'de> for ORSetDelta<T>
impl<'de, T> Deserialize<'de> for ORSetDelta<T>
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<T: Ord + Clone> Lattice for ORSetDelta<T>
impl<T: Ord + Clone> Lattice for ORSetDelta<T>
Source§fn join(&self, other: &Self) -> Self
fn join(&self, other: &Self) -> Self
Join operation (least upper bound)
Must be commutative, associative, and idempotent
Source§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
Source§fn join_assign(&mut self, other: &Self)
fn join_assign(&mut self, other: &Self)
Join-assign: self = self ⊔ other
Source§impl<T> Serialize for ORSetDelta<T>
impl<T> Serialize for ORSetDelta<T>
impl<T: Eq + Ord + Clone> Eq for ORSetDelta<T>
impl<T: Ord + Clone> StructuralPartialEq for ORSetDelta<T>
Auto Trait Implementations§
impl<T> Freeze for ORSetDelta<T>
impl<T> RefUnwindSafe for ORSetDelta<T>where
T: RefUnwindSafe,
impl<T> Send for ORSetDelta<T>where
T: Send,
impl<T> Sync for ORSetDelta<T>where
T: Sync,
impl<T> Unpin for ORSetDelta<T>
impl<T> UnwindSafe for ORSetDelta<T>where
T: RefUnwindSafe,
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