Struct containers::collections::hash_table::HashTable [] [src]

pub struct HashTable<K: Eq + Hash, T, H: Clone + Hasher = SipHasher> {
    // some fields omitted
}

Methods

impl<K: Eq + Hash, T, H: Clone + Hasher> HashTable<K, T, H>
[src]

fn new(log_cap: u32, hasher: H) -> Option<Self>

fn find(&self, k: &K) -> Option<(&K, &T)>

fn find_mut(&mut self, k: &K) -> Option<(&K, &mut T)>

fn insert_with<F: FnOnce(Option<T>) -> T>(&mut self, k: K, f: F) -> Result<(), (K, T)>

fn insert(&mut self, k: K, x: T) -> Result<Option<T>, (K, T)>

fn delete(&mut self, k: &K) -> Option<T>

Trait Implementations

impl<K: Send + Eq + Hash, T: Send, H: Send + Clone + Hasher> Send for HashTable<K, T, H>
[src]

impl<K: Sync + Eq + Hash, T: Sync, H: Sync + Clone + Hasher> Sync for HashTable<K, T, H>
[src]

impl<K: Eq + Hash, T, H: Clone + Hasher> Drop for HashTable<K, T, H>
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more