Struct redox::hashmap::HashMap [] [src]

pub struct HashMap<K: Clone, V: Clone> {
    // some fields omitted
}

A hashtable

Methods

impl<K: Hash + PartialEq + Clone + Debug + Display, V: Clone + Debug> HashMap<K, V>

fn new() -> Self

Make new HT

fn get(&self, key: &K) -> Option<&V>

Get value

fn get_mut(&mut self, key: &K) -> Option<&mut V>

Get value mutable

fn insert(&mut self, key: K, val: V) -> Option<V>

Set value (return the previous one if overwritten)