Trait vino_types::maps::MapWrapper
source · [−]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
fn get_inner_owned(self) -> HashMap<String, T>
fn get_inner_owned(self) -> HashMap<String, T>
Get the inner HashMap.
fn get_inner_mut(&mut self) -> &mut HashMap<String, T>
fn get_inner_mut(&mut self) -> &mut HashMap<String, T>
Get a mutable reference to the inner HashMap.
Provided methods
fn into_inner(self) -> HashMap<String, T>
fn into_inner(self) -> HashMap<String, T>
Return the inner HashMap.