Type t
type t<K, V> = @{mut count: uint,
mut chains: ~[mut chain<K, V>],
hasher: hashfn<K>,
eqer: eqfn<K>,}
Implementation hashmap of map<K, V> for t<K, V>
Method size
fn size() -> uint
Method contains_key
fn contains_key(k: K) -> bool
Method insert
fn insert(+k: K, +v: V) -> bool
Method find
fn find(k: K) -> option<V>
Method get
fn get(k: K) -> V
Method []
fn [](k: K) -> V
Method remove
fn remove(k: K) -> option<V>
Method each
fn each(blk: fn(K, V) -> bool)
Method each_key
fn each_key(blk: fn(K) -> bool)
Method each_value
fn each_value(blk: fn(V) -> bool)
Function mk
fn mk<K, V: copy>(hasher: hashfn<K>, eqer: eqfn<K>) -> t<K, V>