[−][src]Function flat_tree::children
pub fn children(i: usize) -> Option<(usize, usize)>
Returns both children of a node.
Examples
assert_eq!(flat_tree::children(0), None); assert_eq!(flat_tree::children(1), Some((0, 2))); assert_eq!(flat_tree::children(3), Some((1, 5))); assert_eq!(flat_tree::children(9), Some((8, 10)));