Function flat_tree::right_child

source ·
pub fn right_child(i: u64) -> Option<u64>
Expand description

Returns only the left child of a node.

Examples

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