pub enum DecimalOperationError {
Overflow,
DivisionByZero,
}Expand description
Represents the possible errors that can occur during decimal operations.
Variants§
Overflow
Indicates that an overflow occurred during the operation.
DivisionByZero
Indicates that a division by zero occurred during the operation.
Trait Implementations§
Source§impl Clone for DecimalOperationError
impl Clone for DecimalOperationError
Source§fn clone(&self) -> DecimalOperationError
fn clone(&self) -> DecimalOperationError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DecimalOperationError
Source§impl Debug for DecimalOperationError
impl Debug for DecimalOperationError
Source§impl Display for DecimalOperationError
impl Display for DecimalOperationError
impl Eq for DecimalOperationError
Source§impl Error for DecimalOperationError
impl Error for DecimalOperationError
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 DecimalOperationError
impl PartialEq for DecimalOperationError
impl StructuralPartialEq for DecimalOperationError
Auto Trait Implementations§
impl Freeze for DecimalOperationError
impl RefUnwindSafe for DecimalOperationError
impl Send for DecimalOperationError
impl Sync for DecimalOperationError
impl Unpin for DecimalOperationError
impl UnsafeUnpin for DecimalOperationError
impl UnwindSafe for DecimalOperationError
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