Enum scolapasta_int_parse::Error
source · 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)>
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> PartialEq for Error<'a>
impl<'a> PartialEq for Error<'a>
source§impl<'a> PartialOrd for Error<'a>
impl<'a> PartialOrd for Error<'a>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<'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