pub struct ValueMapDiff<K, V> {
pub clear: bool,
pub del: HashSet<K>,
pub set: HashMap<K, V>,
}Fields§
§clear: boolWhether the map should be emptied before applying the diff
del: HashSet<K>Values to remove from the map
set: HashMap<K, V>Values to add to the map
Trait Implementations§
Source§impl<K: Clone, V: Clone> Clone for ValueMapDiff<K, V>
impl<K: Clone, V: Clone> Clone for ValueMapDiff<K, V>
Source§fn clone(&self) -> ValueMapDiff<K, V>
fn clone(&self) -> ValueMapDiff<K, V>
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 moreSource§impl<'de, K, V> Deserialize<'de> for ValueMapDiff<K, V>
impl<'de, K, V> Deserialize<'de> for ValueMapDiff<K, V>
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<K, V> PartialEq for ValueMapDiff<K, V>
impl<K, V> PartialEq for ValueMapDiff<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for ValueMapDiff<K, V>
impl<K, V> RefUnwindSafe for ValueMapDiff<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for ValueMapDiff<K, V>
impl<K, V> Sync for ValueMapDiff<K, V>
impl<K, V> Unpin for ValueMapDiff<K, V>
impl<K, V> UnwindSafe for ValueMapDiff<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