pub enum CannotDiv {
ByZero,
WouldOverflow,
}
Expand description
Either DivByZero
or WouldOverflow
.
Variants§
Trait Implementations§
Source§impl Fail for CannotDiv
impl Fail for CannotDiv
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moreSource§impl From<WouldOverflow> for CannotDiv
impl From<WouldOverflow> for CannotDiv
Source§fn from(_: WouldOverflow) -> CannotDiv
fn from(_: WouldOverflow) -> CannotDiv
Converts to this type from the input type.
impl Copy for CannotDiv
impl Eq for CannotDiv
impl StructuralPartialEq for CannotDiv
Auto Trait Implementations§
impl Freeze for CannotDiv
impl RefUnwindSafe for CannotDiv
impl Send for CannotDiv
impl Sync for CannotDiv
impl Unpin for CannotDiv
impl UnwindSafe for CannotDiv
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