[−][src]Trait ascii::IntoAsciiString
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]
unsafe fn into_ascii_string_unchecked(self) -> AsciiString
[src]
fn into_ascii_string(self) -> Result<AsciiString, FromAsciiError<Self>>
[src]
impl<'a> IntoAsciiString for &'a [AsciiChar]
[src]
unsafe fn into_ascii_string_unchecked(self) -> AsciiString
[src]
fn into_ascii_string(self) -> Result<AsciiString, FromAsciiError<Self>>
[src]
impl IntoAsciiString for Vec<u8>
[src]
unsafe fn into_ascii_string_unchecked(self) -> AsciiString
[src]
fn into_ascii_string(self) -> Result<AsciiString, FromAsciiError<Self>>
[src]
impl<'a> IntoAsciiString for &'a [u8]
[src]
unsafe fn into_ascii_string_unchecked(self) -> AsciiString
[src]
fn into_ascii_string(self) -> Result<AsciiString, FromAsciiError<Self>>
[src]
impl IntoAsciiString for String
[src]
unsafe fn into_ascii_string_unchecked(self) -> AsciiString
[src]
fn into_ascii_string(self) -> Result<AsciiString, FromAsciiError<Self>>
[src]
impl<'a> IntoAsciiString for &'a str
[src]
unsafe fn into_ascii_string_unchecked(self) -> AsciiString
[src]
fn into_ascii_string(self) -> Result<AsciiString, FromAsciiError<Self>>
[src]
impl IntoAsciiString for CString
[src]
Note that the trailing null byte will be removed in the conversion.
unsafe fn into_ascii_string_unchecked(self) -> AsciiString
[src]
fn into_ascii_string(self) -> Result<AsciiString, FromAsciiError<Self>>
[src]
impl<'a> IntoAsciiString for &'a CStr
[src]
Note that the trailing null byte will be removed in the conversion.
unsafe fn into_ascii_string_unchecked(self) -> AsciiString
[src]
fn into_ascii_string(self) -> Result<AsciiString, FromAsciiError<Self>>
[src]
impl<'a, B: ?Sized> IntoAsciiString for Cow<'a, B> where
B: 'a + ToOwned,
&'a B: IntoAsciiString,
<B as ToOwned>::Owned: IntoAsciiString,
[src]
B: 'a + ToOwned,
&'a B: IntoAsciiString,
<B as ToOwned>::Owned: IntoAsciiString,