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, V> Clone for ValueMapDiff<K, V>
impl<K, V> 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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<K, V> Debug for ValueMapDiff<K, V>
impl<K, V> Debug for ValueMapDiff<K, V>
Source§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<ValueMapDiff<K, V>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ValueMapDiff<K, V>, <__D as Deserializer<'de>>::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>
Source§fn eq(&self, other: &ValueMapDiff<K, V>) -> bool
fn eq(&self, other: &ValueMapDiff<K, V>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<K, V> Serialize for ValueMapDiff<K, V>
impl<K, V> Serialize for ValueMapDiff<K, V>
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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> UnsafeUnpin 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