Type Definition dict::Dict
[−]
[src]
type Dict<T> = Vec<DictEntry<T>>;
Trait Implementations
impl<T> DictIface<T> for Dict<T>
[src]
fn add(&mut self, key: String, val: T) -> bool
[src]
Add an element val of type T, indexed by the string key. Returns false if the key exists or there is a hash collision
fn remove_key(&mut self, key: &str) -> Option<T>
[src]
Remove the element identified by the key key and return it, if exists.
fn get(&self, key: &str) -> Option<&T>
[src]
Return a reference to the value identified by the key key, if exists.
fn contains_key(&self, key: &str) -> bool
[src]
Return true if an element identified by the key key exists.