pub struct SetDiff<K> {
pub added: Vec<Added<K>>,
pub removed: Vec<Removed<K>>,
pub unchanged: Vec<Unchanged<K>>,
}Expand description
Deterministic structural diff for a set collection.
Fields§
§added: Vec<Added<K>>Members added in stable key order.
removed: Vec<Removed<K>>Members removed in stable key order.
unchanged: Vec<Unchanged<K>>Members retained in stable key order.
Implementations§
Trait Implementations§
impl<K: Eq> Eq for SetDiff<K>
Source§impl<K: PartialEq> PartialEq for SetDiff<K>
impl<K: PartialEq> PartialEq for SetDiff<K>
impl<K: PartialEq> StructuralPartialEq for SetDiff<K>
Auto Trait Implementations§
impl<K> Freeze for SetDiff<K>
impl<K> RefUnwindSafe for SetDiff<K>where
K: RefUnwindSafe,
impl<K> Send for SetDiff<K>where
K: Send,
impl<K> Sync for SetDiff<K>where
K: Sync,
impl<K> Unpin for SetDiff<K>where
K: Unpin,
impl<K> UnsafeUnpin for SetDiff<K>
impl<K> UnwindSafe for SetDiff<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