Struct rug::float::ParseFloatError [−][src]
pub struct ParseFloatError { /* fields omitted */ }
Expand description
An error which can be returned when parsing a Float
.
See the Float::parse_radix
method for
details on what strings are accepted.
Examples
use rug::{float::ParseFloatError, Float}; // This string is not a floating-point number. let s = "something completely different (_!_!_)"; let error: ParseFloatError = match Float::parse_radix(s, 4) { Ok(_) => unreachable!(), Err(error) => error, }; println!("Parse error: {}", error);
Trait Implementations
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
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Casts the value.
Casts the value.
Casts the value.