Struct std::num::ParseFloatError1.0.0[][src]

pub struct ParseFloatError { /* fields omitted */ }

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.


use std::str::FromStr;

if let Err(e) = f64::from_str("a.12") {
    println!("Failed conversion to f64: {}", e);

Trait Implementations

impl Clone for ParseFloatError[src]

impl Debug for ParseFloatError[src]

impl Display for ParseFloatError[src]

impl Eq for ParseFloatError[src]

impl Error for ParseFloatError[src]

impl PartialEq<ParseFloatError> for ParseFloatError[src]

impl StructuralEq for ParseFloatError[src]

impl StructuralPartialEq for ParseFloatError[src]

Auto Trait Implementations

impl RefUnwindSafe for ParseFloatError

impl Send for ParseFloatError

impl Sync for ParseFloatError

impl Unpin for ParseFloatError

impl UnwindSafe for ParseFloatError

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.