Skip to main content

freeshfuncnode

Function freeshfuncnode 

Source
pub fn freeshfuncnode(hn: &str)
Expand description

Port of freeshfuncnode(HashNode hn) from Src/hashtable.c:888.

C body frees the function name, body Eprog, redir Eprog, filename string, and sticky options struct. Rust port: drop runs all of this when the entry is removed; this helper just removes from the table to trigger the drop chain. Rust idiom replacement: HashMap::remove triggers the Box<T> drop cascade — same teardown as the C zfree chain, automated.