lexical_util::ascii

Function is_valid_letter_slice

Source
pub const fn is_valid_letter_slice(slc: &[u8]) -> bool
Expand description

Determine if a slice is all valid ASCII letters. Modified to be used in a const fn, since for loops and iter don’t work.