Enum pascal_string::AsciiError
[−]
[src]
pub enum AsciiError { Char(ToAsciiCharError), Str(AsAsciiStrError), }
An error type which abstracts over ascii conversion errors.
Variants
Char(ToAsciiCharError)
A character was not encoded as ascii.
Str(AsAsciiStrError)
A string was not encoded as ascii.
Trait Implementations
impl Debug for AsciiError
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for AsciiError
[src]
fn eq(&self, __arg_0: &AsciiError) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &AsciiError) -> bool
[src]
This method tests for !=
.
impl Display for AsciiError
[src]
fn fmt(&self, fmtr: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Error for AsciiError
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
[src]
The lower-level cause of this error, if any. Read more
impl From<ToAsciiCharError> for AsciiError
[src]
fn from(e: ToAsciiCharError) -> Self
[src]
Performs the conversion.
impl From<AsAsciiStrError> for AsciiError
[src]
fn from(e: AsAsciiStrError) -> Self
[src]
Performs the conversion.