pub enum AsciiError {
Char(ToAsciiCharError),
Str(AsAsciiStrError),
}
Expand description
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§
Source§impl Debug for AsciiError
impl Debug for AsciiError
Source§impl Display for AsciiError
impl Display for AsciiError
Source§impl Error for AsciiError
impl Error for AsciiError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl From<AsAsciiStrError> for AsciiError
impl From<AsAsciiStrError> for AsciiError
Source§fn from(e: AsAsciiStrError) -> Self
fn from(e: AsAsciiStrError) -> Self
Converts to this type from the input type.
Source§impl From<ToAsciiCharError> for AsciiError
impl From<ToAsciiCharError> for AsciiError
Source§fn from(e: ToAsciiCharError) -> Self
fn from(e: ToAsciiCharError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AsciiError
impl PartialEq for AsciiError
impl StructuralPartialEq for AsciiError
Auto Trait Implementations§
impl Freeze for AsciiError
impl RefUnwindSafe for AsciiError
impl Send for AsciiError
impl Sync for AsciiError
impl Unpin for AsciiError
impl UnwindSafe for AsciiError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more