pub enum TryFromf64Errors {
ValidationError {
source: RealValueErrors<f64>,
},
NonRepresentableExactly {
value: f64,
precision: u32,
backtrace: Backtrace,
},
}
Expand description
Errors that can be generated by the conversion from a f64
value.
Variants§
ValidationError
The input value is invalid.
This error occurs when the input value being converted is invalid.
Fields
§
source: RealValueErrors<f64>
The source error that occurred during validation.
NonRepresentableExactly
The input value
is not representable exactly with the asked precision
.
This error occurs when the input f64
value cannot be exactly represented with the specified precision.
Trait Implementations§
Source§impl Debug for TryFromf64Errors
impl Debug for TryFromf64Errors
Source§impl Display for TryFromf64Errors
impl Display for TryFromf64Errors
Source§impl Error for TryFromf64Errors
impl Error for TryFromf64Errors
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
Source§fn provide<'_request>(&'_request self, request: &mut Request<'_request>)
fn provide<'_request>(&'_request self, request: &mut Request<'_request>)
🔬This is a nightly-only experimental API. (
error_generic_member_access
)Provides type-based access to context intended for error reports. 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 From<RealValueErrors<f64>> for TryFromf64Errors
impl From<RealValueErrors<f64>> for TryFromf64Errors
Source§fn from(source: RealValueErrors<f64>) -> Self
fn from(source: RealValueErrors<f64>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for TryFromf64Errors
impl RefUnwindSafe for TryFromf64Errors
impl Send for TryFromf64Errors
impl Sync for TryFromf64Errors
impl Unpin for TryFromf64Errors
impl UnwindSafe for TryFromf64Errors
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