pub enum Error<'a> {
Argument(ArgumentError<'a>),
Radix(InvalidRadixError),
}
Expand description
Sum type for all possible errors from this crate.
See ArgumentError
and InvalidRadixError
for more details.
Variants§
Trait Implementations§
Source§impl<'a> Error for Error<'a>
impl<'a> Error for Error<'a>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl<'a> From<ArgumentError<'a>> for Error<'a>
impl<'a> From<ArgumentError<'a>> for Error<'a>
Source§fn from(err: ArgumentError<'a>) -> Self
fn from(err: ArgumentError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<InvalidRadixError> for Error<'a>
impl<'a> From<InvalidRadixError> for Error<'a>
Source§fn from(err: InvalidRadixError) -> Self
fn from(err: InvalidRadixError) -> Self
Converts to this type from the input type.
Source§impl<'a> Ord for Error<'a>
impl<'a> Ord for Error<'a>
Source§impl<'a> PartialOrd for Error<'a>
impl<'a> PartialOrd for Error<'a>
impl<'a> Copy for Error<'a>
impl<'a> Eq for Error<'a>
impl<'a> StructuralPartialEq for Error<'a>
Auto Trait Implementations§
impl<'a> Freeze for Error<'a>
impl<'a> RefUnwindSafe for Error<'a>
impl<'a> Send for Error<'a>
impl<'a> Sync for Error<'a>
impl<'a> Unpin for Error<'a>
impl<'a> UnwindSafe for Error<'a>
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