Enum fpdec::TryFromDecimalError
source · pub enum TryFromDecimalError {
NotAnIntValue,
ValueOutOfRange,
}
Expand description
An error which can be returned from converting Decimal
values to ints
or floats.
This error is used as the error type for the TryFrom<Decimal>
implementation of the primitive int and float types.
Variants§
NotAnIntValue
Given value does not represent an int.
ValueOutOfRange
Given value exceeds the range of the target value.
Trait Implementations§
source§impl Clone for TryFromDecimalError
impl Clone for TryFromDecimalError
source§fn clone(&self) -> TryFromDecimalError
fn clone(&self) -> TryFromDecimalError
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 TryFromDecimalError
impl Debug for TryFromDecimalError
source§impl Display for TryFromDecimalError
impl Display for TryFromDecimalError
source§impl Error for TryFromDecimalError
impl Error for TryFromDecimalError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 TryFromDecimalError
impl PartialEq for TryFromDecimalError
source§fn eq(&self, other: &TryFromDecimalError) -> bool
fn eq(&self, other: &TryFromDecimalError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TryFromDecimalError
impl StructuralEq for TryFromDecimalError
impl StructuralPartialEq for TryFromDecimalError
Auto Trait Implementations§
impl RefUnwindSafe for TryFromDecimalError
impl Send for TryFromDecimalError
impl Sync for TryFromDecimalError
impl Unpin for TryFromDecimalError
impl UnwindSafe for TryFromDecimalError
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