fn filter_crds_values(
        values: &[VersionedCrdsValue],
        mask: u64,
        mask_bits: u32,
    ) -> HashSet<usize> {
        values
            .iter()
            .enumerate()
            .filter_map(|(index, value)| {
                if check_mask(value, mask, mask_bits) {
                    Some(index)
                } else {
                    None
                }
            })
            .collect()
    }
// Manual filtering by scanning all the values.
Manual filtering by scanning all the values.
Manual filtering by scanning all the values .
fn filter_crds_values(
        values: &[VersionedCrdsValue],
        mask: u64,
        mask_bits: u32,
    ) -> HashSet<usize> {
        values
            .iter()
            .enumerate()
            .filter_map(|(index, value)| {
                if check_mask(value, mask, mask_bits) {
                    Some(index)
                } else {
                    None
                }
            })
            .collect()
    }
fn filter_crds_values ( values : & [ VersionedCrdsValue ] , mask : u64 , mask_bits : u32 , ) -> HashSet < usize > { values . iter ( ) . enumerate ( ) . filter_map ( | ( index , value ) | { if check_mask ( value , mask , mask_bits ) { Some ( index ) } else { None } } ) . collect ( ) }
Manual filtering by scanning all the values.
Manual filtering by scanning all the values .
values
&[VersionedCrdsValue]
mask
u64
mask_bits
u32