fn check_mask(value: &VersionedCrdsValue, mask: u64, mask_bits: u32) -> bool {
        let hash = CrdsFilter::hash_as_u64(&value.value_hash);
        let ones = (!0u64).checked_shr(mask_bits).unwrap_or(0u64);
        (hash | ones) == (mask | ones)
    }
// Returns true if the first mask_bits most significant bits of hash is the
// same as the given bit mask.
Returns true if the first mask_bits most significant bits of hash is the
same as the given bit mask.
Returns true if the first mask_bits most significant bits of hash is the same as the given bit mask .
fn check_mask(value: &VersionedCrdsValue, mask: u64, mask_bits: u32) -> bool {
        let hash = CrdsFilter::hash_as_u64(&value.value_hash);
        let ones = (!0u64).checked_shr(mask_bits).unwrap_or(0u64);
        (hash | ones) == (mask | ones)
    }
fn check_mask ( value : & VersionedCrdsValue , mask : u64 , mask_bits : u32 ) -> bool { let hash = CrdsFilter :: hash_as_u64 ( & value . value_hash ) ; let ones = ( ! 0u64 ) . checked_shr ( mask_bits ) . unwrap_or ( 0u64 ) ; ( hash | ones ) == ( mask | ones ) }
Returns true if the first mask_bits most significant bits of hash is the
same as the given bit mask.
Returns true if the first mask_bits most significant bits of hash is the same as the given bit mask .
value
&VersionedCrdsValue
mask
u64
mask_bits
u32