transbeam/src/util.rs
2022-04-28 05:13:14 -04:00

4 lines
116 B
Rust

pub(crate) fn is_ascii_alphanumeric(s: &str) -> bool {
s.as_bytes().iter().all(|c| c.is_ascii_alphanumeric())
}