pub enum ParseRationalError {
DenominatorIsZero,
ParseIntError(ParseIntError),
}Expand description
An error which can be returned when parsing a Rational.
Variants§
DenominatorIsZero
Denominator in Rational is zero.
ParseIntError(ParseIntError)
Failed to parse integer in input.
Trait Implementations§
Source§impl Clone for ParseRationalError
impl Clone for ParseRationalError
Source§fn clone(&self) -> ParseRationalError
fn clone(&self) -> ParseRationalError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParseRationalError
impl Debug for ParseRationalError
Source§impl Display for ParseRationalError
impl Display for ParseRationalError
Source§impl Error for ParseRationalError
impl Error for ParseRationalError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for ParseRationalError
impl PartialEq for ParseRationalError
impl Eq for ParseRationalError
impl StructuralPartialEq for ParseRationalError
Auto Trait Implementations§
impl Freeze for ParseRationalError
impl RefUnwindSafe for ParseRationalError
impl Send for ParseRationalError
impl Sync for ParseRationalError
impl Unpin for ParseRationalError
impl UnwindSafe for ParseRationalError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more