Struct dec::TryFromDecimalError
source · pub struct TryFromDecimalError;
Expand description
An error indicating that a value cannot be cast to a primitive type.
Causes for this failure include calling cast functions on values:
- Representing infinity or NaN
- With non-zero exponent values
- Whose coefficient doesn’t fit into the target, e.g. values that require too many digits of precision.
Trait Implementations§
source§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)>
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 TryFromDecimalError
impl PartialEq for TryFromDecimalError
impl Eq for TryFromDecimalError
impl StructuralPartialEq for TryFromDecimalError
Auto Trait Implementations§
impl Freeze for TryFromDecimalError
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