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