pub trait TryAscii {
// Required method
fn try_ascii(&self) -> MaybeAscii<'_>;
}Expand description
Trait that encapsulates the logic of try_ascii
The trait is automatically implemented for [u8], &[u8] and everything that implements AsRef<[u8]>.