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.
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
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).