Enum IntegerError
pub enum IntegerError {
DivisionByZero,
ArithmeticOverflow {
operation: &'static str,
},
}Expand description
Errors produced by integer helper operations.
Variants§
DivisionByZero
The requested operation used a zero divisor.
ArithmeticOverflow
The requested integer helper overflowed while computing its result.
Trait Implementations§
§impl Clone for IntegerError
impl Clone for IntegerError
§fn clone(&self) -> IntegerError
fn clone(&self) -> IntegerError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for IntegerError
impl Debug for IntegerError
§impl Display for IntegerError
impl Display for IntegerError
§impl Error for IntegerError
impl Error for IntegerError
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()
§impl PartialEq for IntegerError
impl PartialEq for IntegerError
impl Copy for IntegerError
impl Eq for IntegerError
impl StructuralPartialEq for IntegerError
Auto Trait Implementations§
impl Freeze for IntegerError
impl RefUnwindSafe for IntegerError
impl Send for IntegerError
impl Sync for IntegerError
impl Unpin for IntegerError
impl UnsafeUnpin for IntegerError
impl UnwindSafe for IntegerError
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