pub struct Updated<K, V> {
pub key: K,
pub previous: V,
pub current: V,
}Expand description
A map entry that changed value without changing key identity.
Fields§
§key: KUpdated key.
previous: VPreviously committed value.
current: VNewly committed value.
Trait Implementations§
impl<K: Eq, V: Eq> Eq for Updated<K, V>
Source§impl<K: PartialEq, V: PartialEq> PartialEq for Updated<K, V>
impl<K: PartialEq, V: PartialEq> PartialEq for Updated<K, V>
impl<K: PartialEq, V: PartialEq> StructuralPartialEq for Updated<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for Updated<K, V>
impl<K, V> RefUnwindSafe for Updated<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for Updated<K, V>
impl<K, V> Sync for Updated<K, V>
impl<K, V> Unpin for Updated<K, V>
impl<K, V> UnsafeUnpin for Updated<K, V>where
K: UnsafeUnpin,
V: UnsafeUnpin,
impl<K, V> UnwindSafe for Updated<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