Struct ParseFloatError
pub struct ParseFloatError { pub(in ::num) kind: FloatErrorKind }
An error which can be returned when parsing a float.
This error is used as the error type for the FromStr implementation
for f32 and f64.
Example
use FromStr;
if let Err = f64from_str
Fields
kind: FloatErrorKind
Trait Implementations
impl Clone for ParseFloatError
fn clone(&self) -> ParseFloatError
impl Debug for ParseFloatError
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for ParseFloatError
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for ParseFloatError
fn assert_fields_are_eq(&self)
impl Error for ParseFloatError
impl PartialEq for ParseFloatError
fn eq(&self, other: &ParseFloatError) -> bool
impl StructuralPartialEq for ParseFloatError
Auto Trait Implementations
impl Freeze for ParseFloatError
impl RefUnwindSafe for ParseFloatError
impl Send for ParseFloatError
impl Sync for ParseFloatError
impl Unpin for ParseFloatError
impl UnsafeUnpin for ParseFloatError
impl UnwindSafe for ParseFloatError
Blanket Implementations
impl<T> Any for ParseFloatError
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ParseFloatError
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ParseFloatError
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for ParseFloatError
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for ParseFloatError
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for ParseFloatError
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for ParseFloatError
impl<T, U> Into<U> for ParseFloatError
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ParseFloatError
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for ParseFloatError
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>