pub struct AggregateMap<M>(/* private fields */);
Expand description
A wrapper around a “map” type that lets you collect an iterator of key-value pairs into a mapping between keys and collections of values, instead of just keys to values.
Implementations§
Source§impl<M> AggregateMap<M>
impl<M> AggregateMap<M>
Sourcepub fn into_inner(self) -> M
pub fn into_inner(self) -> M
Consumes the AggregateMap
to give you the inner map M
.
Trait Implementations§
Source§impl<M> AsMut<M> for AggregateMap<M>
impl<M> AsMut<M> for AggregateMap<M>
Source§impl<M> AsRef<M> for AggregateMap<M>
impl<M> AsRef<M> for AggregateMap<M>
Source§impl<M: Clone> Clone for AggregateMap<M>
impl<M: Clone> Clone for AggregateMap<M>
Source§fn clone(&self) -> AggregateMap<M>
fn clone(&self) -> AggregateMap<M>
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<M: Debug> Debug for AggregateMap<M>
impl<M: Debug> Debug for AggregateMap<M>
Source§impl<M: Default> Default for AggregateMap<M>
impl<M: Default> Default for AggregateMap<M>
Source§fn default() -> AggregateMap<M>
fn default() -> AggregateMap<M>
Returns the “default value” for a type. Read more
Source§impl<'de, M> Deserialize<'de> for AggregateMap<M>where
M: Deserialize<'de>,
impl<'de, M> Deserialize<'de> for AggregateMap<M>where
M: Deserialize<'de>,
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<M, K, V> Extend<(K, V)> for AggregateMap<M>where
M: Map<K, V>,
impl<M, K, V> Extend<(K, V)> for AggregateMap<M>where
M: Map<K, V>,
Source§fn extend<T: IntoIterator<Item = (K, V)>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = (K, V)>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl<M> From<M> for AggregateMap<M>
impl<M> From<M> for AggregateMap<M>
Source§impl<M, K, V> FromIterator<(K, V)> for AggregateMap<M>
impl<M, K, V> FromIterator<(K, V)> for AggregateMap<M>
Source§impl<M: Hash> Hash for AggregateMap<M>
impl<M: Hash> Hash for AggregateMap<M>
Source§impl<M: Ord> Ord for AggregateMap<M>
impl<M: Ord> Ord for AggregateMap<M>
Source§fn cmp(&self, other: &AggregateMap<M>) -> Ordering
fn cmp(&self, other: &AggregateMap<M>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<M: PartialEq> PartialEq for AggregateMap<M>
impl<M: PartialEq> PartialEq for AggregateMap<M>
Source§impl<M: PartialOrd> PartialOrd for AggregateMap<M>
impl<M: PartialOrd> PartialOrd for AggregateMap<M>
Source§impl<M> Serialize for AggregateMap<M>where
M: Serialize,
impl<M> Serialize for AggregateMap<M>where
M: Serialize,
impl<M: Eq> Eq for AggregateMap<M>
impl<M> StructuralPartialEq for AggregateMap<M>
Auto Trait Implementations§
impl<M> Freeze for AggregateMap<M>where
M: Freeze,
impl<M> RefUnwindSafe for AggregateMap<M>where
M: RefUnwindSafe,
impl<M> Send for AggregateMap<M>where
M: Send,
impl<M> Sync for AggregateMap<M>where
M: Sync,
impl<M> Unpin for AggregateMap<M>where
M: Unpin,
impl<M> UnwindSafe for AggregateMap<M>where
M: 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