pub fn names_equal(first: &[u8], second: &[u8]) -> bool {
    match test_n_name_fields(first, second, 1) {
        Some(Some(len)) if len == first.len() => true,
        Some(Some(_)) => first == second, // Invalid since there's extra data
        Some(None) => false,
        None => first == second,
    }
}
/// Tests two uncompressed on-the-wire names for equality, falling back
/// to bitwise comparison if either is invalid.
Tests two uncompressed on-the-wire names for equality, falling back
to bitwise comparison if either is invalid.
Tests two uncompressed on - the - wire names for equality falling back to bitwise comparison if either is invalid .
pub fn names_equal(first: &[u8], second: &[u8]) -> bool {
    match test_n_name_fields(first, second, 1) {
        Some(Some(len)) if len == first.len() => true,
        Some(Some(_)) => first == second, // Invalid since there's extra data
        Some(None) => false,
        None => first == second,
    }
}
pub fn names_equal ( first : & [ u8 ] , second : & [ u8 ] ) -> bool { match test_n_name_fields ( first , second , 1 ) { Some ( Some ( len ) ) if len == first . len ( ) => true , Some ( Some ( _ ) ) => first == second , // Invalid since there's extra data Some ( None ) => false , None => first == second , } }
Tests two uncompressed on-the-wire names for equality, falling back
to bitwise comparison if either is invalid.
Tests two uncompressed on - the - wire names for equality falling back to bitwise comparison if either is invalid .
first
&[u8]
second
&[u8]
first
&[u8]
second
&[u8]