pub enum FixedPointError {
InvalidFormat,
TooManyDecimals,
Overflow,
}Expand description
Fixed-point arithmetic errors
Variants§
InvalidFormat
Invalid number format
TooManyDecimals
Too many decimal places (>8)
Overflow
Arithmetic overflow
Trait Implementations§
Source§impl Clone for FixedPointError
impl Clone for FixedPointError
Source§fn clone(&self) -> FixedPointError
fn clone(&self) -> FixedPointError
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 FixedPointError
impl Debug for FixedPointError
Source§impl Display for FixedPointError
impl Display for FixedPointError
Source§impl Error for FixedPointError
impl Error for FixedPointError
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 FixedPointError
impl PartialEq for FixedPointError
impl StructuralPartialEq for FixedPointError
Auto Trait Implementations§
impl Freeze for FixedPointError
impl RefUnwindSafe for FixedPointError
impl Send for FixedPointError
impl Sync for FixedPointError
impl Unpin for FixedPointError
impl UnwindSafe for FixedPointError
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