pub fn left_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::left_child_with_depth(0, 0), None);
assert_eq!(flat_tree::left_child_with_depth(1, 1), Some(0));
assert_eq!(flat_tree::left_child_with_depth(3, 2), Some(1));