pub struct ValueMapUpdates<K, V>(/* private fields */);Expand description
An update for updating a ValueMap<K, V>
Implementations§
Source§impl<K, V> ValueMapUpdates<K, V>
impl<K, V> ValueMapUpdates<K, V>
Sourcepub fn new() -> ValueMapUpdates<K, V>
pub fn new() -> ValueMapUpdates<K, V>
Create a new empty list of updates
pub fn clear(&mut self) -> &mut ValueMapUpdates<K, V>
Sourcepub fn set(&mut self, k: K, v: V) -> &mut ValueMapUpdates<K, V>
pub fn set(&mut self, k: K, v: V) -> &mut ValueMapUpdates<K, V>
Add an update for setting the (k, v) key-value pair
Sourcepub fn del(&mut self, k: K) -> &mut ValueMapUpdates<K, V>
pub fn del(&mut self, k: K) -> &mut ValueMapUpdates<K, V>
Add an update for removing the key-value pair identified by k
pub fn iter(&self) -> <&ValueMapUpdates<K, V> as IntoIterator>::IntoIter
Trait Implementations§
Source§impl<K, V> Clone for ValueMapUpdates<K, V>
impl<K, V> Clone for ValueMapUpdates<K, V>
Source§fn clone(&self) -> ValueMapUpdates<K, V>
fn clone(&self) -> ValueMapUpdates<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<K, V> Debug for ValueMapUpdates<K, V>
impl<K, V> Debug for ValueMapUpdates<K, V>
Source§impl<K, V> Default for ValueMapUpdates<K, V>
impl<K, V> Default for ValueMapUpdates<K, V>
Source§fn default() -> ValueMapUpdates<K, V>
fn default() -> ValueMapUpdates<K, V>
Returns the “default value” for a type. Read more
Source§impl<'de, K, V> Deserialize<'de> for ValueMapUpdates<K, V>where
K: Deserialize<'de>,
V: Deserialize<'de>,
impl<'de, K, V> Deserialize<'de> for ValueMapUpdates<K, V>where
K: Deserialize<'de>,
V: Deserialize<'de>,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ValueMapUpdates<K, V>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ValueMapUpdates<K, V>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a, K, V> IntoIterator for &'a ValueMapUpdates<K, V>
impl<'a, K, V> IntoIterator for &'a ValueMapUpdates<K, V>
Source§type Item = &'a ValueMapUpdate<K, V>
type Item = &'a ValueMapUpdate<K, V>
The type of the elements being iterated over.
Source§type IntoIter = ValueMapUpdatesIter<'a, K, V>
type IntoIter = ValueMapUpdatesIter<'a, K, V>
Which kind of iterator are we turning this into?
Source§fn into_iter(self) -> <&'a ValueMapUpdates<K, V> as IntoIterator>::IntoIter
fn into_iter(self) -> <&'a ValueMapUpdates<K, V> as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
Source§impl<K, V> IntoIterator for ValueMapUpdates<K, V>
impl<K, V> IntoIterator for ValueMapUpdates<K, V>
Source§type Item = ValueMapUpdate<K, V>
type Item = ValueMapUpdate<K, V>
The type of the elements being iterated over.
Source§type IntoIter = ValueMapUpdatesIntoIter<K, V>
type IntoIter = ValueMapUpdatesIntoIter<K, V>
Which kind of iterator are we turning this into?
Source§fn into_iter(self) -> <ValueMapUpdates<K, V> as IntoIterator>::IntoIter
fn into_iter(self) -> <ValueMapUpdates<K, V> as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
Source§impl<K, V> PartialEq for ValueMapUpdates<K, V>
impl<K, V> PartialEq for ValueMapUpdates<K, V>
Source§impl<K, V> Serialize for ValueMapUpdates<K, V>
impl<K, V> Serialize for ValueMapUpdates<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
impl<K, V> Eq for ValueMapUpdates<K, V>
impl<K, V> StructuralPartialEq for ValueMapUpdates<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for ValueMapUpdates<K, V>
impl<K, V> RefUnwindSafe for ValueMapUpdates<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for ValueMapUpdates<K, V>
impl<K, V> Sync for ValueMapUpdates<K, V>
impl<K, V> Unpin for ValueMapUpdates<K, V>
impl<K, V> UnwindSafe for ValueMapUpdates<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