Struct rug::integer::ParseIntegerError [−][src]
pub struct ParseIntegerError { /* fields omitted */ }
An error which can be returned when parsing an Integer
.
See the Integer::parse_radix
method for details on what strings
are accepted.
Examples
use rug::integer::ParseIntegerError; use rug::Integer; // This string is not an integer. let s = "something completely different (_!_!_)"; let error: ParseIntegerError = match Integer::parse_radix(s, 4) { Ok(_) => unreachable!(), Err(error) => error, }; println!("Parse error: {}", error);
Trait Implementations
impl Debug for ParseIntegerError
[src]
impl Debug for ParseIntegerError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for ParseIntegerError
[src]
impl Error for ParseIntegerError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
1.0.0
[src]The lower-level cause of this error, if any. Read more
impl Display for ParseIntegerError
[src]
impl Display for ParseIntegerError
Auto Trait Implementations
impl Send for ParseIntegerError
impl Send for ParseIntegerError
impl Sync for ParseIntegerError
impl Sync for ParseIntegerError