Struct fixed::ParseFixedError [−][src]
pub struct ParseFixedError { /* fields omitted */ }
Expand description
An error which can be returned when parsing a fixed-point number.
Examples
use fixed::{types::I16F16, ParseFixedError};
// This string is not a fixed-point number.
let s = "something completely different (_!_!_)";
let error: ParseFixedError = match s.parse::<I16F16>() {
Ok(_) => unreachable!(),
Err(error) => error,
};
println!("Parse error: {}", error);
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ParseFixedError
impl Send for ParseFixedError
impl Sync for ParseFixedError
impl Unpin for ParseFixedError
impl UnwindSafe for ParseFixedError
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Performs the conversion.
Performs the conversion.
Casts the value.
Casts the value.
Casts the value.
Casts the value.