Function left_child

Source
pub fn left_child(i: u64) -> Option<u64>
Expand description

Returns only the left child of a node.

ยงExamples

assert_eq!(flat_tree::left_child(0), None);
assert_eq!(flat_tree::left_child(1), Some(0));
assert_eq!(flat_tree::left_child(3), Some(1));