fn is_utf8_non_ascii(b: &[u8]) -> bool {
    if let Ok(s) = from_utf8(b) {
        // if any bytes are ascii this fails the test
        !s.bytes().any(|u| u.is_ascii())
    } else {
        false
    }
}
/// Returns true if the slice is UTF-8 and contains no ascii characters
///
/// [UTF8-non-ascii](https://tools.ietf.org/html/rfc3977#section-9.8)
Returns true if the slice is UTF-8 and contains no ascii characters
[UTF8-non-ascii]
Returns true if the slice is UTF - 8 and contains no ascii characters [ UTF8 - non - ascii ]
fn is_utf8_non_ascii(b: &[u8]) -> bool {
    if let Ok(s) = from_utf8(b) {
        // if any bytes are ascii this fails the test
        !s.bytes().any(|u| u.is_ascii())
    } else {
        false
    }
}
fn is_utf8_non_ascii ( b : & [ u8 ] ) -> bool { if let Ok ( s ) = from_utf8 ( b ) { // if any bytes are ascii this fails the test ! s . bytes ( ) . any ( | u | u . is_ascii ( ) ) } else { false } }
Returns true if the slice is UTF-8 and contains no ascii characters
[UTF8-non-ascii](https://tools.ietf.org/html/rfc3977#section-9.8)
Returns true if the slice is UTF - 8 and contains no ascii characters [ UTF8 - non - ascii ] ( https : // tools . ietf . org / html / rfc3977#section - 9 . 8 )
b
&[u8]