pub enum KvDiff<'a, T, U> {
Removed,
Inserted(&'a T),
Diff(U),
}
Expand description
A generic type which represents the possible change-states of a Key-Value type
(e.g. HashMap
, BTreeMap
)
Variants§
Trait Implementations§
impl<'a, T, U> StructuralPartialEq for KvDiff<'a, T, U>
Auto Trait Implementations§
impl<'a, T, U> Freeze for KvDiff<'a, T, U>where
U: Freeze,
impl<'a, T, U> RefUnwindSafe for KvDiff<'a, T, U>where
U: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T, U> Send for KvDiff<'a, T, U>
impl<'a, T, U> Sync for KvDiff<'a, T, U>
impl<'a, T, U> Unpin for KvDiff<'a, T, U>where
U: Unpin,
impl<'a, T, U> UnwindSafe for KvDiff<'a, T, U>where
U: UnwindSafe,
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