Struct rug::rational::ParseRationalError [−][src]
pub struct ParseRationalError { /* fields omitted */ }
Expand description
An error which can be returned when parsing a Rational
number.
See the Rational::parse_radix
method
for details on what strings are accepted.
Examples
use rug::{rational::ParseRationalError, Rational}; // This string is not a rational number. let s = "something completely different (_!_!_)"; let error: ParseRationalError = match Rational::parse_radix(s, 4) { Ok(_) => unreachable!(), Err(error) => error, }; println!("Parse error: {}", error);
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ParseRationalError
impl Send for ParseRationalError
impl Sync for ParseRationalError
impl Unpin for ParseRationalError
impl UnwindSafe for ParseRationalError
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.