pub struct NodeInfo<'a> {
pub node: TreeNode,
pub l_ranges: &'a RangeSetRef<ChunkNum>,
pub r_ranges: &'a RangeSetRef<ChunkNum>,
pub full: bool,
pub query_leaf: bool,
pub is_root: bool,
pub is_half_leaf: bool,
}Expand description
Extended node info.
Some of the information is redundant, but it is convenient to have it all in one place.
Fields§
§node: TreeNodethe node
l_ranges: &'a RangeSetRef<ChunkNum>left child intersection with the query range
r_ranges: &'a RangeSetRef<ChunkNum>right child intersection with the query range
full: boolthe node is fully included in the query range
query_leaf: boolthe node is a leaf for the purpose of this query
is_root: boolthe node is the root node (needs special handling when computing hash)
is_half_leaf: booltrue if this node is the last leaf, and it is <= half full