pub enum Mappings<K = (), V = ()> where
K: for<'a> Key<'a>, {
Simple(Option<Map<K, V>>),
List(Vec<Map<K, V>, Global>),
}
Expand description
A collection of Map
s.
Variants
Simple(Option<Map<K, V>>)
Zero or one mappings.
List(Vec<Map<K, V>, Global>)
More than one mapping.
Implementations
Trait Implementations
Extends a collection with the contents of an iterator. Read more
🔬 This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
🔬 This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
type IntoIter = MappingsIter<K, V>
type IntoIter = MappingsIter<K, V>
Which kind of iterator are we turning this into?
Auto Trait Implementations
impl<K, V> RefUnwindSafe for Mappings<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> UnwindSafe for Mappings<K, V> where
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more