#[non_exhaustive]pub struct NumOpError(/* private fields */);Expand description
Error returned when a mathematical operation fails.
Implementations§
Source§impl NumOpError
impl NumOpError
Sourcepub fn is_overflow(self) -> bool
pub fn is_overflow(self) -> bool
Returns true if this operation error’ed due to overflow.
Sourcepub fn is_div_by_zero(self) -> bool
pub fn is_div_by_zero(self) -> bool
Returns true if this operation error’ed due to division by zero.
Trait Implementations§
Source§impl Clone for NumOpError
impl Clone for NumOpError
Source§fn clone(&self) -> NumOpError
fn clone(&self) -> NumOpError
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 moreSource§impl Debug for NumOpError
impl Debug for NumOpError
Source§impl Display for NumOpError
impl Display for NumOpError
Source§impl Error for NumOpError
Available on crate feature std only.
impl Error for NumOpError
Available on crate feature
std only.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 PartialEq for NumOpError
impl PartialEq for NumOpError
impl Copy for NumOpError
impl Eq for NumOpError
impl StructuralPartialEq for NumOpError
Auto Trait Implementations§
impl Freeze for NumOpError
impl RefUnwindSafe for NumOpError
impl Send for NumOpError
impl Sync for NumOpError
impl Unpin for NumOpError
impl UnsafeUnpin for NumOpError
impl UnwindSafe for NumOpError
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