Map0

Trait Map0 

Source
pub trait Map0<BypassOrphanRule, K, V> {
    // Required method
    fn empty() -> Self;
}
Expand description

Map that can be empty. Unlocks: map! {}

Required Methods§

Source

fn empty() -> Self

Constructor with capacity for non-empty or empty use.

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.

Implementations on Foreign Types§

Source§

impl<K: Ord, V> Map0<(), K, V> for BTreeMap<K, V>

Source§

fn empty() -> Self

Source§

impl<K: Hash + Eq, V, S: Default + BuildHasher> Map0<(), K, V> for HashMap<K, V, S>

Source§

fn empty() -> Self

Implementors§