Function ngx_rbtree_init

Source
pub unsafe fn ngx_rbtree_init(
    tree: *mut ngx_rbtree_t,
    sentinel: *mut ngx_rbtree_node_t,
    insert: ngx_rbtree_insert_pt,
)
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.