pub enum Mappings<K: for<'a> Key<'a> = (), V = ()> {
Simple(Option<Map<K, V>>),
List(Vec<Map<K, V>>),
}Expand description
A collection of Maps.
Variants
Simple(Option<Map<K, V>>)
Zero or one mappings.
List(Vec<Map<K, V>>)
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
Creates a value from an iterator. Read more
Creates a value from an iterator. Read more
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
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