pub fn right_child_with_depth(i: usize, depth: usize) -> Option<usize>
Expand description

Returns only the left child of a node, with a depth.

Examples

assert_eq!(flat_tree::right_child_with_depth(0, 0), None);
assert_eq!(flat_tree::right_child_with_depth(1, 1), Some(2));
assert_eq!(flat_tree::right_child_with_depth(3, 2), Some(5));