Function flat_tree::count
[−]
[src]
pub fn count(i: u64) -> u64
Returns how many nodes are in the tree that the node spans.
Examples
assert_eq!(flat_tree::count(0), 1); assert_eq!(flat_tree::count(1), 3); assert_eq!(flat_tree::count(3), 7); assert_eq!(flat_tree::count(5), 3); assert_eq!(flat_tree::count(23), 15); assert_eq!(flat_tree::count(27), 7);