Function flat_tree::left_span_with_depth
source · Expand description
Returns the left most node in the tree that the node spans, with a depth.
Examples
assert_eq!(flat_tree::left_span_with_depth(0, 0), 0);
assert_eq!(flat_tree::left_span_with_depth(1, 1), 0);
assert_eq!(flat_tree::left_span_with_depth(3, 2), 0);
assert_eq!(flat_tree::left_span_with_depth(23, 3), 16);
assert_eq!(flat_tree::left_span_with_depth(27, 2), 24);