fn is_all_ascii(b: &[u8]) -> bool {
    for b in b {
        if *b >= 128 {
            return false;
        }
    }

    return true;
}
/// is_all_ascii returns true if all bytes are under 128 (original ascii set)
///
/// Solution for problem 3 from set 4: <https://cryptopals.com/sets/4/challenges/27>
is_all_ascii returns true if all bytes are under 128 (original ascii set)
Solution for problem 3 from set 4.
is_all_ascii returns true if all bytes are under 128 ( original ascii set ) Solution for problem 3 from set 4 .
fn is_all_ascii(b: &[u8]) -> bool {
    for b in b {
        if *b >= 128 {
            return false;
        }
    }
    return true;
}
fn is_all_ascii ( b : & [ u8 ] ) -> bool { for b in b { if * b >= 128 { return false ; } } return true ; }
is_all_ascii returns true if all bytes are under 128 (original ascii set)
Solution for problem 3 from set 4: <https://cryptopals.com/sets/4/challenges/27>
is_all_ascii returns true if all bytes are under 128 ( original ascii set ) Solution for problem 3 from set 4 : <https : // cryptopals . com / sets / 4 / challenges / 27 >
b
&[u8]