pub struct MapChanges<K: Clone + Eq + Hash + Debug, C: ChangeReport> {
pub added: HashSet<K>,
pub removed: HashSet<K>,
pub modified: HashMap<K, C>,
}Expand description
Change report for HashMap<K, V> fields.
Tracks which keys were added, removed, or modified.
Fields§
§added: HashSet<K>Keys that were added.
removed: HashSet<K>Keys that were removed.
modified: HashMap<K, C>Modified entries with their nested change reports.
Trait Implementations§
Source§impl<K: Clone + Eq + Hash + Debug + Default + ToString, C: ChangeReport> ChangeReport for MapChanges<K, C>
impl<K: Clone + Eq + Hash + Debug + Default + ToString, C: ChangeReport> ChangeReport for MapChanges<K, C>
Source§impl<K: Clone + Clone + Eq + Hash + Debug, C: Clone + ChangeReport> Clone for MapChanges<K, C>
impl<K: Clone + Clone + Eq + Hash + Debug, C: Clone + ChangeReport> Clone for MapChanges<K, C>
Source§fn clone(&self) -> MapChanges<K, C>
fn clone(&self) -> MapChanges<K, C>
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 moreAuto Trait Implementations§
impl<K, C> Freeze for MapChanges<K, C>
impl<K, C> RefUnwindSafe for MapChanges<K, C>where
K: RefUnwindSafe,
C: RefUnwindSafe,
impl<K, C> Send for MapChanges<K, C>
impl<K, C> Sync for MapChanges<K, C>
impl<K, C> Unpin for MapChanges<K, C>
impl<K, C> UnwindSafe for MapChanges<K, C>where
K: UnwindSafe,
C: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more