pub struct Change<K, V> {
pub key: K,
pub old: Option<V>,
pub new: Option<V>,
}Expand description
What happened to one key between two versions of a map.
old and new are both present for an update, one of them for an insert or a remove. Both
absent never occurs.
Fields§
§key: K§old: Option<V>§new: Option<V>Trait Implementations§
impl<K: Eq, V: Eq> Eq for Change<K, V>
impl<K, V> StructuralPartialEq for Change<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for Change<K, V>
impl<K, V> RefUnwindSafe for Change<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for Change<K, V>
impl<K, V> Sync for Change<K, V>
impl<K, V> Unpin for Change<K, V>
impl<K, V> UnwindSafe for Change<K, V>where
K: UnwindSafe,
V: 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