Trait ascii::ToAsciiChar [] [src]

pub trait ToAsciiChar {
    unsafe fn to_ascii_char_unchecked(self) -> AsciiChar;
    fn to_ascii_char(self) -> Result<AsciiCharToAsciiCharError>;
}

Convert char, u8 and other character types to AsciiChar.

Required Methods

Convert to AsciiChar without checking that it is an ASCII character.

Convert to AsciiChar.

Implementors