Function test_tree_hole_contains

Source
pub fn test_tree_hole_contains(
    tree_hole: &[Box<[u128]>],
    bits: &[usize],
) -> bool
Expand description

Returns a boolean indicating whether one or more “tree holes” fully satisfy the provided set of indices. The function iterates over each element in the given collection and checks if every index in the provided slice corresponds to a value of 1 in that element, thereby determining if the set of indices is entirely contained within any of the elements.