pub struct GSetInsertDelta<T: Ord + Clone> {
element: T,
}Expand description
Delta for GSet insert operation
For GSet, the delta is simply a singleton set containing the inserted element. Property: X.insert(v) = X ⊔ {v}
Fields§
§element: TImplementations§
Trait Implementations§
Source§impl<T: Clone + Ord + Clone> Clone for GSetInsertDelta<T>
impl<T: Clone + Ord + Clone> Clone for GSetInsertDelta<T>
Source§fn clone(&self) -> GSetInsertDelta<T>
fn clone(&self) -> GSetInsertDelta<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<T: Ord + Clone> From<GSetInsertDelta<T>> for GSet<T>
Create a GSet containing just this element (for use as delta)
impl<T: Ord + Clone> From<GSetInsertDelta<T>> for GSet<T>
Create a GSet containing just this element (for use as delta)
Source§fn from(delta: GSetInsertDelta<T>) -> Self
fn from(delta: GSetInsertDelta<T>) -> Self
Converts to this type from the input type.
impl<T: Eq + Ord + Clone> Eq for GSetInsertDelta<T>
impl<T: Ord + Clone> StructuralPartialEq for GSetInsertDelta<T>
Auto Trait Implementations§
impl<T> Freeze for GSetInsertDelta<T>where
T: Freeze,
impl<T> RefUnwindSafe for GSetInsertDelta<T>where
T: RefUnwindSafe,
impl<T> Send for GSetInsertDelta<T>where
T: Send,
impl<T> Sync for GSetInsertDelta<T>where
T: Sync,
impl<T> Unpin for GSetInsertDelta<T>where
T: Unpin,
impl<T> UnwindSafe for GSetInsertDelta<T>where
T: 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