Skip to main content

removehashnode

Function removehashnode 

Source
pub fn removehashnode<T>(ht: &mut HashMap<String, T>, nam: &str) -> Option<T>
Expand description

Port of removehashnode(HashTable ht, const char *nam) from Src/hashtable.c:275.

C body removes the node from the bucket chain and returns the removed pointer (or NULL). Rust HashMap::remove has the matching shape.