Struct ParseFloatError

struct ParseFloatError { ... }

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 std::str::FromStr;

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

Implementations

impl Clone for ParseFloatError

fn clone(self: &Self) -> ParseFloatError

impl Debug for ParseFloatError

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Display for ParseFloatError

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Eq for ParseFloatError

impl Error for ParseFloatError

impl Freeze for ParseFloatError

impl PartialEq for ParseFloatError

fn eq(self: &Self, other: &ParseFloatError) -> bool

impl RefUnwindSafe for ParseFloatError

impl Send for ParseFloatError

impl StructuralPartialEq for ParseFloatError

impl Sync for ParseFloatError

impl Unpin for ParseFloatError

impl UnsafeUnpin for ParseFloatError

impl UnwindSafe for ParseFloatError

impl<T> Any for ParseFloatError

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for ParseFloatError

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for ParseFloatError

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for ParseFloatError

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for ParseFloatError

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for ParseFloatError

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for ParseFloatError

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for ParseFloatError

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>