pub enum Mappings<K = (), V = ()> {
Simple(Option<Map<K, V>>),
List(Vec<Map<K, V>, Global>),
}
Expand description
A collection of Map
s.
Variants§
Implementations§
Trait Implementations§
§impl<K, V> Extend<Map<K, V>> for Mappings<K, V>
impl<K, V> Extend<Map<K, V>> for Mappings<K, V>
§fn extend<T>(&mut self, iter: T)where
T: IntoIterator<Item = Map<K, V>>,
fn extend<T>(&mut self, iter: T)where T: IntoIterator<Item = Map<K, V>>,
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
§impl<K, V> FromIterator<Map<K, V>> for Mappings<K, V>
impl<K, V> FromIterator<Map<K, V>> for Mappings<K, V>
§impl<K, V> FromIterator<Mappings<K, V>> for Mappings<K, V>
impl<K, V> FromIterator<Mappings<K, V>> for Mappings<K, V>
§impl<'a, K, V> IntoIterator for &'a Mappings<K, V>
impl<'a, K, V> IntoIterator for &'a Mappings<K, V>
§impl<K, V> IntoIterator for Mappings<K, V>
impl<K, V> IntoIterator for Mappings<K, V>
§impl<K, V> PartialEq<Mappings<K, V>> for Mappings<K, V>where
K: PartialEq<K>,
V: PartialEq<V>,
impl<K, V> PartialEq<Mappings<K, V>> for Mappings<K, V>where K: PartialEq<K>, V: PartialEq<V>,
impl<K, V> Eq for Mappings<K, V>where K: Eq, V: Eq,
impl<K, V> StructuralEq for Mappings<K, V>
impl<K, V> StructuralPartialEq for Mappings<K, V>
Auto Trait Implementations§
impl<K, V> RefUnwindSafe for Mappings<K, V>where K: RefUnwindSafe, V: RefUnwindSafe,
impl<K, V> Send for Mappings<K, V>where K: Send, V: Send,
impl<K, V> Sync for Mappings<K, V>where K: Sync, V: Sync,
impl<K, V> Unpin for Mappings<K, V>where K: Unpin, V: Unpin,
impl<K, V> UnwindSafe for Mappings<K, V>where K: UnwindSafe, V: UnwindSafe,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.