pub struct HashSetDiff<T: Hash + Eq> {
pub added: HashSet<T>,
pub removed: HashSet<T>,
}
Expand description
The diff struct used to compare two HashSet’s
Fields§
§added: HashSet<T>
Values that are added
removed: HashSet<T>
Values that are removed
Trait Implementations§
Source§impl<T> Clone for HashSetDiff<T>
impl<T> Clone for HashSetDiff<T>
Source§impl<T> Debug for HashSetDiff<T>
impl<T> Debug for HashSetDiff<T>
Source§impl<'de, T> Deserialize<'de> for HashSetDiff<T>
impl<'de, T> Deserialize<'de> for HashSetDiff<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> PartialEq for HashSetDiff<T>
impl<T> PartialEq for HashSetDiff<T>
Auto Trait Implementations§
impl<T> Freeze for HashSetDiff<T>
impl<T> RefUnwindSafe for HashSetDiff<T>where
T: RefUnwindSafe,
impl<T> Send for HashSetDiff<T>where
T: Send,
impl<T> Sync for HashSetDiff<T>where
T: Sync,
impl<T> Unpin for HashSetDiff<T>where
T: Unpin,
impl<T> UnwindSafe for HashSetDiff<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