Trait ascii::IntoAsciiString [−][src]
pub trait IntoAsciiString: Sized { unsafe fn into_ascii_string_unchecked(self) -> AsciiString; fn into_ascii_string(self) -> Result<AsciiString, FromAsciiError<Self>>; }
Convert vectors into AsciiString.
Required Methods
unsafe fn into_ascii_string_unchecked(self) -> AsciiString
Convert to AsciiString without checking for non-ASCII characters.
fn into_ascii_string(self) -> Result<AsciiString, FromAsciiError<Self>>
Convert to AsciiString.
Implementations on Foreign Types
impl IntoAsciiString for Vec<AsciiChar>[src]
impl IntoAsciiString for Vec<AsciiChar>unsafe fn into_ascii_string_unchecked(self) -> AsciiString[src]
unsafe fn into_ascii_string_unchecked(self) -> AsciiStringfn into_ascii_string(self) -> Result<AsciiString, FromAsciiError<Self>>[src]
fn into_ascii_string(self) -> Result<AsciiString, FromAsciiError<Self>>impl IntoAsciiString for Vec<u8>[src]
impl IntoAsciiString for Vec<u8>unsafe fn into_ascii_string_unchecked(self) -> AsciiString[src]
unsafe fn into_ascii_string_unchecked(self) -> AsciiStringfn into_ascii_string(self) -> Result<AsciiString, FromAsciiError<Self>>[src]
fn into_ascii_string(self) -> Result<AsciiString, FromAsciiError<Self>>impl<'a> IntoAsciiString for &'a [u8][src]
impl<'a> IntoAsciiString for &'a [u8]unsafe fn into_ascii_string_unchecked(self) -> AsciiString[src]
unsafe fn into_ascii_string_unchecked(self) -> AsciiStringfn into_ascii_string(self) -> Result<AsciiString, FromAsciiError<Self>>[src]
fn into_ascii_string(self) -> Result<AsciiString, FromAsciiError<Self>>impl IntoAsciiString for String[src]
impl IntoAsciiString for Stringunsafe fn into_ascii_string_unchecked(self) -> AsciiString[src]
unsafe fn into_ascii_string_unchecked(self) -> AsciiStringfn into_ascii_string(self) -> Result<AsciiString, FromAsciiError<Self>>[src]
fn into_ascii_string(self) -> Result<AsciiString, FromAsciiError<Self>>impl<'a> IntoAsciiString for &'a str[src]
impl<'a> IntoAsciiString for &'a strunsafe fn into_ascii_string_unchecked(self) -> AsciiString[src]
unsafe fn into_ascii_string_unchecked(self) -> AsciiStringfn into_ascii_string(self) -> Result<AsciiString, FromAsciiError<Self>>[src]
fn into_ascii_string(self) -> Result<AsciiString, FromAsciiError<Self>>Implementors
impl IntoAsciiString for AsciiString