Trait ascii::ToAsciiChar
[−]
[src]
pub trait ToAsciiChar { unsafe fn to_ascii_char_unchecked(self) -> AsciiChar; fn to_ascii_char(self) -> Result<AsciiChar, ToAsciiCharError>; }
Convert char
, u8
and other character types to AsciiChar
.
Required Methods
unsafe fn to_ascii_char_unchecked(self) -> AsciiChar
Convert to AsciiChar
without checking that it is an ASCII character.
fn to_ascii_char(self) -> Result<AsciiChar, ToAsciiCharError>
Convert to AsciiChar
.
Implementations on Foreign Types
impl ToAsciiChar for u8
[src]
impl ToAsciiChar for u8
fn to_ascii_char(self) -> Result<AsciiChar, ToAsciiCharError>
[src]
fn to_ascii_char(self) -> Result<AsciiChar, ToAsciiCharError>
unsafe fn to_ascii_char_unchecked(self) -> AsciiChar
[src]
unsafe fn to_ascii_char_unchecked(self) -> AsciiChar
impl ToAsciiChar for char
[src]
impl ToAsciiChar for char
fn to_ascii_char(self) -> Result<AsciiChar, ToAsciiCharError>
[src]
fn to_ascii_char(self) -> Result<AsciiChar, ToAsciiCharError>
unsafe fn to_ascii_char_unchecked(self) -> AsciiChar
[src]
unsafe fn to_ascii_char_unchecked(self) -> AsciiChar
Implementors
impl ToAsciiChar for AsciiChar