pub enum FromStrErr<T> {
IntParseErr(T),
DenominatorIsZero,
}Expand description
The error returned when parsing a string in decimal or
rational notation into a num_rational::Ratio<T>.
Variants§
IntParseErr(T)
Contains the error when a string fails to parse into a T.
DenominatorIsZero
The variant that is returned when a string in rational notation has a denominator that is zero.
Trait Implementations§
Source§impl<T> Debug for FromStrErr<T>where
T: Display,
impl<T> Debug for FromStrErr<T>where
T: Display,
Source§impl<T> Display for FromStrErr<T>where
T: Display,
impl<T> Display for FromStrErr<T>where
T: Display,
Auto Trait Implementations§
impl<T> Freeze for FromStrErr<T>where
T: Freeze,
impl<T> RefUnwindSafe for FromStrErr<T>where
T: RefUnwindSafe,
impl<T> Send for FromStrErr<T>where
T: Send,
impl<T> Sync for FromStrErr<T>where
T: Sync,
impl<T> Unpin for FromStrErr<T>where
T: Unpin,
impl<T> UnwindSafe for FromStrErr<T>where
T: UnwindSafe,
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more