Trait std::ascii::AsciiCast

pub trait AsciiCast<T> {
    fn to_ascii(&self) -> T;
    unsafe fn to_ascii_nocheck(&self) -> T;
    fn is_ascii(&self) -> bool;
}

Trait for converting into an ascii type.

Required Methods

fn to_ascii(&self) -> T

Convert to an ascii type

unsafe fn to_ascii_nocheck(&self) -> T

Convert to an ascii type, not doing any range asserts

fn is_ascii(&self) -> bool

Check if convertible to ascii

Implementors