[][src]Function solana_libra_types::proof::treebits::direction_from_parent

pub fn direction_from_parent(node: u64) -> NodeDirection

This method takes in a node position and return NodeDirection based on if it's left or right child Similar to sibling. The observation is that, after strip out the right-most common bits, if next right-most bits is 0, it is left child. Otherwise, right child