1.0.0[−][src]Struct scale_info::prelude::num::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); }
Trait Implementations
impl Clone for ParseFloatError
[src]
pub fn clone(&self) -> ParseFloatError
[src]
pub fn clone_from(&mut self, source: &Self)
[src]
impl Debug for ParseFloatError
[src]
impl Display for ParseFloatError
[src]
impl Eq for ParseFloatError
[src]
impl Error for ParseFloatError
[src]
pub fn description(&self) -> &str
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn cause(&self) -> Option<&dyn Error>
[src]
impl PartialEq<ParseFloatError> for ParseFloatError
[src]
pub fn eq(&self, other: &ParseFloatError) -> bool
[src]
pub fn ne(&self, other: &ParseFloatError) -> bool
[src]
impl StructuralEq for ParseFloatError
[src]
impl StructuralPartialEq for ParseFloatError
[src]
Auto Trait Implementations
impl RefUnwindSafe for ParseFloatError
[src]
impl Send for ParseFloatError
[src]
impl Sync for ParseFloatError
[src]
impl Unpin for ParseFloatError
[src]
impl UnwindSafe for ParseFloatError
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,