Function ngx_rbtree_init

Source
pub unsafe fn ngx_rbtree_init(
    tree: *mut ngx_rbtree_s,
    sentinel: *mut ngx_rbtree_node_s,
    insert: Option<unsafe extern "C" fn(*mut ngx_rbtree_node_s, *mut ngx_rbtree_node_s, *mut ngx_rbtree_node_s)>,
)
Expand description

Initializes the RbTree with specified sentinel and insert function.

ยงSafety

All of the pointers passed must be valid. sentinel is expected to be valid for the whole lifetime of the tree.