Skip to main content

interval_to_nodes

Function interval_to_nodes 

Source
pub const fn interval_to_nodes(size: usize) -> usize
Expand description

Calculates how many nodes an interval tree should have for the given interval size. Rounds to nearest power of two to generate a complete binary tree.