is_ascii_str

Function is_ascii_str 

Source
pub fn is_ascii_str(unescaped_str: &str) -> bool
Expand description

Checks if a given string is fully ASCII or within the ASCII range.

Remember: all strings are UTF-8 encoded in Rust, but most ASCII strings fit within the UTF-8 encoding scheme.