Enum typed_floats::FromStrError
source · pub enum FromStrError {
ParseFloatError(ParseFloatError),
InvalidNumber(InvalidNumber),
}
Expand description
An error that can occur when converting from a string into a TypedFloat
Variants§
ParseFloatError(ParseFloatError)
The string did not contain a valid float number
InvalidNumber(InvalidNumber)
The string contained a valid float number but it didn’t fit in the target type
Trait Implementations§
source§impl Debug for FromStrError
impl Debug for FromStrError
source§impl Display for FromStrError
impl Display for FromStrError
source§impl Error for FromStrError
impl Error for FromStrError
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()
Auto Trait Implementations§
impl Freeze for FromStrError
impl RefUnwindSafe for FromStrError
impl Send for FromStrError
impl Sync for FromStrError
impl Unpin for FromStrError
impl UnwindSafe for FromStrError
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