Skip to main content

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".

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