Struct ascii::AsAsciiStrError
[−]
[src]
pub struct AsAsciiStrError(_);
Error that is returned when a sequence of u8
are not all ASCII.
Is used by As[Mut]AsciiStr
and the from_ascii
method on AsciiStr
and AsciiString
.
Methods
impl AsAsciiStrError
[src]
fn valid_up_to(self) -> usize
Returns the index of the first non-ASCII byte.
It is the maximum index such that from_ascii(input[..index])
would return Ok(_)
.
Trait Implementations
impl Clone for AsAsciiStrError
[src]
fn clone(&self) -> AsAsciiStrError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for AsAsciiStrError
[src]
impl PartialEq for AsAsciiStrError
[src]
fn eq(&self, __arg_0: &AsAsciiStrError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &AsAsciiStrError) -> bool
This method tests for !=
.