pub trait Map1Plus<BypassOrphanRule, K, V> {
// Required methods
fn from_1(key: K, value: V, capacity: usize) -> Self;
fn insert(&mut self, key: K, value: V) -> Option<V>;
}Expand description
Map that can have 1 or more elements. Unlocks: map! { a => b }
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.