pub struct TwoPSetDelta<T: Ord + Clone> {
pub added: BTreeSet<T>,
pub removed: BTreeSet<T>,
}Expand description
Delta for TwoPSet: new additions and new removals.
Fields§
§added: BTreeSet<T>Elements added that the other replica doesn’t have.
removed: BTreeSet<T>Elements removed that the other replica doesn’t know about.
Trait Implementations§
Source§impl<T: Clone + Ord + Clone> Clone for TwoPSetDelta<T>
impl<T: Clone + Ord + Clone> Clone for TwoPSetDelta<T>
Source§fn clone(&self) -> TwoPSetDelta<T>
fn clone(&self) -> TwoPSetDelta<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 moreimpl<T: Eq + Ord + Clone> Eq for TwoPSetDelta<T>
impl<T: Ord + Clone> StructuralPartialEq for TwoPSetDelta<T>
Auto Trait Implementations§
impl<T> Freeze for TwoPSetDelta<T>
impl<T> RefUnwindSafe for TwoPSetDelta<T>where
T: RefUnwindSafe,
impl<T> Send for TwoPSetDelta<T>where
T: Send,
impl<T> Sync for TwoPSetDelta<T>where
T: Sync,
impl<T> Unpin for TwoPSetDelta<T>
impl<T> UnsafeUnpin for TwoPSetDelta<T>
impl<T> UnwindSafe for TwoPSetDelta<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