Map

Trait Map 

Source
pub trait Map<K, V>:
    Keyed<Key = K, Item = V>
    + Len
    + for<'a> Get<&'a K>
    + for<'a> GetKeyValue<&'a K> { }
Expand description

Imutable map data structure.

A map is an unordered collection storing key-value pairs, indexed by the key.

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.

Implementors§

Source§

impl<K, V, C: Keyed<Key = K, Item = V> + Len + for<'a> Get<&'a K> + for<'a> GetKeyValue<&'a K>> Map<K, V> for C