Struct std::num::ParseFloatError 1.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.
Example
use std::str::FromStr; if let Err(e) = f64::from_str("a.12") { println!("Failed conversion to f64: {}", e); }Run
Trait Implementations
impl Clone for ParseFloatError[src]
impl Clone for ParseFloatError[src]pub fn clone(&self) -> ParseFloatError[src]
pub fn clone(&self) -> ParseFloatError[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)[src]
fn clone_from(&mut self, source: &Self)[src]Performs copy-assignment from source. Read more
impl Debug for ParseFloatError[src]
impl Debug for ParseFloatError[src]impl Display for ParseFloatError[src]
impl Display for ParseFloatError[src]impl Error for ParseFloatError[src]
impl Error for ParseFloatError[src]fn description(&self) -> &str[src]
fn description(&self) -> &str[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]The lower-level source of this error, if any. Read more
impl PartialEq<ParseFloatError> for ParseFloatError[src]
impl PartialEq<ParseFloatError> for ParseFloatError[src]pub fn eq(&self, other: &ParseFloatError) -> bool[src]
pub fn eq(&self, other: &ParseFloatError) -> bool[src]This method tests for self and other values to be equal, and is used
by ==. Read more
pub fn ne(&self, other: &ParseFloatError) -> bool[src]
pub fn ne(&self, other: &ParseFloatError) -> bool[src]This method tests for !=.
impl Eq 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> Borrow<T> for T where
T: ?Sized, [src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]pub fn borrow(&self) -> &TⓘNotable traits for &'_ mut I
impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<R: Read + ?Sized> Read for &mut Rimpl<W: Write + ?Sized> Write for &mut W[src]
pub fn borrow(&self) -> &TⓘNotable traits for &'_ mut I
impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<R: Read + ?Sized> Read for &mut Rimpl<W: Write + ?Sized> Write for &mut W[src]Immutably borrows from an owned value. Read more
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut TⓘNotable traits for &'_ mut I
impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<R: Read + ?Sized> Read for &mut Rimpl<W: Write + ?Sized> Write for &mut W[src]
pub fn borrow_mut(&mut self) -> &mut TⓘNotable traits for &'_ mut I
impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<R: Read + ?Sized> Read for &mut Rimpl<W: Write + ?Sized> Write for &mut W[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into #41263)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more