pub enum DivWarning {
ByZero,
Overflowed,
}
Expand description
Either DivByZero
or Overflowed
.
Variants§
Trait Implementations§
Source§impl Clone for DivWarning
impl Clone for DivWarning
Source§fn clone(&self) -> DivWarning
fn clone(&self) -> DivWarning
Returns a copy 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 moreSource§impl Debug for DivWarning
impl Debug for DivWarning
Source§impl Display for DivWarning
impl Display for DivWarning
Source§impl Error for DivWarning
impl Error for DivWarning
Source§impl Fail for DivWarning
impl Fail for DivWarning
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<DivByZero> for DivWarning
impl From<DivByZero> for DivWarning
Source§fn from(_: DivByZero) -> DivWarning
fn from(_: DivByZero) -> DivWarning
Converts to this type from the input type.
Source§impl From<Overflowed> for DivWarning
impl From<Overflowed> for DivWarning
Source§fn from(_: Overflowed) -> DivWarning
fn from(_: Overflowed) -> DivWarning
Converts to this type from the input type.
Source§impl Hash for DivWarning
impl Hash for DivWarning
Source§impl PartialEq for DivWarning
impl PartialEq for DivWarning
impl Copy for DivWarning
impl Eq for DivWarning
impl StructuralPartialEq for DivWarning
Auto Trait Implementations§
impl Freeze for DivWarning
impl RefUnwindSafe for DivWarning
impl Send for DivWarning
impl Sync for DivWarning
impl Unpin for DivWarning
impl UnwindSafe for DivWarning
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