pub struct RecordMapUpdates<K, R>where
R: Node,{ /* private fields */ }Implementations§
Source§impl<K, R> RecordMapUpdates<K, R>where
R: Node,
impl<K, R> RecordMapUpdates<K, R>where
R: Node,
pub fn new() -> RecordMapUpdates<K, R>
pub fn clear(&mut self) -> &mut RecordMapUpdates<K, R>
pub fn update( &mut self, key: K, update: <R as Node>::Update, insert: bool, ) -> &mut RecordMapUpdates<K, R>
pub fn del(&mut self, k: K) -> &mut RecordMapUpdates<K, R>
pub fn replace(&mut self, k: K, r: R) -> &mut RecordMapUpdates<K, R>where
K: Clone,
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> <&RecordMapUpdates<K, R> as IntoIterator>::IntoIter
Trait Implementations§
Source§impl<K, C> Clone for RecordMapUpdates<K, C>
impl<K, C> Clone for RecordMapUpdates<K, C>
Source§fn clone(&self) -> RecordMapUpdates<K, C>
fn clone(&self) -> RecordMapUpdates<K, C>
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, C> Debug for RecordMapUpdates<K, C>
impl<K, C> Debug for RecordMapUpdates<K, C>
Source§impl<K, C> Default for RecordMapUpdates<K, C>where
C: Node,
impl<K, C> Default for RecordMapUpdates<K, C>where
C: Node,
Source§fn default() -> RecordMapUpdates<K, C>
fn default() -> RecordMapUpdates<K, C>
Returns the “default value” for a type. Read more
Source§impl<'de, K, R> Deserialize<'de> for RecordMapUpdates<K, R>
impl<'de, K, R> Deserialize<'de> for RecordMapUpdates<K, R>
Source§fn deserialize<D>(
deserializer: D,
) -> Result<RecordMapUpdates<K, R>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<RecordMapUpdates<K, R>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a, K, C> IntoIterator for &'a RecordMapUpdates<K, C>where
C: Node,
impl<'a, K, C> IntoIterator for &'a RecordMapUpdates<K, C>where
C: Node,
Source§type Item = &'a RecordMapUpdate<K, <C as Node>::Update>
type Item = &'a RecordMapUpdate<K, <C as Node>::Update>
The type of the elements being iterated over.
Source§type IntoIter = RecordMapUpdatesIter<'a, K, <C as Node>::Update>
type IntoIter = RecordMapUpdatesIter<'a, K, <C as Node>::Update>
Which kind of iterator are we turning this into?
Source§fn into_iter(self) -> <&'a RecordMapUpdates<K, C> as IntoIterator>::IntoIter
fn into_iter(self) -> <&'a RecordMapUpdates<K, C> as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
Source§impl<K, C> IntoIterator for RecordMapUpdates<K, C>where
C: Node,
impl<K, C> IntoIterator for RecordMapUpdates<K, C>where
C: Node,
Source§type Item = RecordMapUpdate<K, <C as Node>::Update>
type Item = RecordMapUpdate<K, <C as Node>::Update>
The type of the elements being iterated over.
Source§type IntoIter = RecordMapUpdatesIntoIter<K, <C as Node>::Update>
type IntoIter = RecordMapUpdatesIntoIter<K, <C as Node>::Update>
Which kind of iterator are we turning this into?
Source§fn into_iter(self) -> <RecordMapUpdates<K, C> as IntoIterator>::IntoIter
fn into_iter(self) -> <RecordMapUpdates<K, C> as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
Source§impl<K, R> PartialEq for RecordMapUpdates<K, R>
impl<K, R> PartialEq for RecordMapUpdates<K, R>
Source§impl<K, R> Serialize for RecordMapUpdates<K, R>
impl<K, R> Serialize for RecordMapUpdates<K, R>
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, R> Freeze for RecordMapUpdates<K, R>
impl<K, R> RefUnwindSafe for RecordMapUpdates<K, R>
impl<K, R> Send for RecordMapUpdates<K, R>
impl<K, R> Sync for RecordMapUpdates<K, R>
impl<K, R> Unpin for RecordMapUpdates<K, R>
impl<K, R> UnwindSafe for RecordMapUpdates<K, R>
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