logo
pub trait MapWrapper<T> where
    Self: Sized
{ fn new() -> Self;
fn get_inner_owned(self) -> HashMap<String, T>;
fn get_inner(&self) -> &HashMap<String, T>;
fn get_inner_mut(&mut self) -> &mut HashMap<String, T>; fn names(&self) -> Vec<String> { ... }
fn is_empty(&self) -> bool { ... }
fn into_inner(self) -> HashMap<String, T> { ... }
fn inner(&self) -> &HashMap<String, T> { ... }
fn get<K: AsRef<str>>(&self, field: K) -> Option<&T> { ... }
fn insert<K: AsRef<str>>(&mut self, field: K, value: T) { ... }
fn len(&self) -> usize { ... } }
Expand description

Utility functions for HashMap wrappers.

Required methods

Constructor for the map.

Get the inner HashMap.

Get a reference to the inner HashMap.

Get a mutable reference to the inner HashMap.

Provided methods

Return a list of names in the inner HashMap.

Return true if the inner HashMap is empty.

Return the inner HashMap.

Return a reference to the inner HashMap.

Get the value for the requested field.

Insert a [T] into the inner map.

Returns the number of fields in the map.

Implementors