Skip to main content

drop_node

Function drop_node 

Source
pub unsafe fn drop_node<T>(node: *mut T)
Expand description

Drops the value of a node from alloc_node and frees the node now.

ยงSafety

node came from alloc_node (or alloc_node_uninit, with its value written since) for this T, no other thread can reach it, and it is let go only this once.