[][src]Trait literal::MapLiteral

pub trait MapLiteral<K, V>: Sized {
    fn new() -> Self;
fn insert(m: &mut Self, k: K, v: V); fn with_capacity(_n: usize) -> Self { ... } }

Interface between map literals and map data types.

Required methods

fn new() -> Self

fn insert(m: &mut Self, k: K, v: V)

Loading content...

Provided methods

fn with_capacity(_n: usize) -> Self

Loading content...

Implementations on Foreign Types

impl<K, V> MapLiteral<K, V> for HashMap<K, V> where
    K: Eq + Hash
[src]

impl<K, V> MapLiteral<K, V> for BTreeMap<K, V> where
    K: Ord
[src]

Loading content...

Implementors

Loading content...