Trait TryAscii

Source
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]>.

Required Methods§

Source

fn try_ascii(&self) -> MaybeAscii<'_>

Implementations on Foreign Types§

Source§

impl TryAscii for &[u8]

Source§

fn try_ascii(&self) -> MaybeAscii<'_>

Source§

impl TryAscii for [u8]

Source§

fn try_ascii(&self) -> MaybeAscii<'_>

Source§

impl TryAscii for dyn AsRef<[u8]>

Source§

fn try_ascii(&self) -> MaybeAscii<'_>

Implementors§