[][src]Function merklemountainrange::merklemountainrange::is_node_right

pub fn is_node_right(index: usize) -> bool

This function takes in the index and calculates if the node is the right child node or not. If the node is the tree root it will still give the answer as if it is a child of a node. This function is an iterative function as we might have to subtract the largest left_most tree.