Trait ascii::AsAsciiStr[][src]

pub trait AsAsciiStr {
    unsafe fn as_ascii_str_unchecked(&self) -> &AsciiStr;
fn as_ascii_str(&self) -> Result<&AsciiStr, AsAsciiStrError>; }

Convert slices of bytes to AsciiStr.

Required Methods

Convert to an ASCII slice without checking for non-ASCII characters.

Convert to an ASCII slice.

Implementations on Foreign Types

impl<'a, T: ?Sized> AsAsciiStr for &'a T where
    T: AsAsciiStr
[src]

impl<'a, T: ?Sized> AsAsciiStr for &'a mut T where
    T: AsAsciiStr
[src]

impl AsAsciiStr for [AsciiChar]
[src]

impl AsAsciiStr for [u8]
[src]

impl AsAsciiStr for str
[src]

Implementors