Struct rug::complex::ParseComplexError
[−]
[src]
pub struct ParseComplexError { /* fields omitted */ }
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; use rug::complex::ParseComplexError; // 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
impl Debug for ParseComplexError
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Error for ParseComplexError
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
The lower-level cause of this error, if any. Read more