Skip to main content

interval_to_internal

Function interval_to_internal 

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

Calculates the number of internal nodes from interval size. Rounds to nearest power of two to generate a complete binary tree.