// Returns true iff any of the labels in `labels` is within the range
// defined by the given `hash_tree`.
Returns true iff any of the labels in `labels` is within the range
defined by the given `hash_tree`.
Returns true iff any of the labels in ` labels ` is within the range defined by the given ` hash_tree ` .
fn any_is_in_range(hash_tree: &HashTree, labels: &[Label]) -> bool {
    let smallest = smallest_label(hash_tree);
    let largest = largest_label(hash_tree);
    labels
        .iter()
        .any(|label| (smallest <= *label) && (*label <= largest))
}
fn any_is_in_range ( hash_tree : & HashTree , labels : & [ Label ] ) -> bool { let smallest = smallest_label ( hash_tree ) ; let largest = largest_label ( hash_tree ) ; labels . iter ( ) . any ( | label | ( smallest <= * label ) && ( * label <= largest ) ) }
Returns true iff any of the labels in `labels` is within the range
defined by the given `hash_tree`.
Returns true iff any of the labels in ` labels ` is within the range defined by the given ` hash_tree ` .
hash_tree
&HashTree
labels
&[Label]