pub enum FromDecStrErr<T> {
IntParseErr(T),
TooFewFractionalDigits(usize),
TooManyFractionalDigits(usize),
}Expand description
The error returned when parsing a string in decimal notation into
a num_rational::Ratio<T>.
Variants§
IntParseErr(T)
Contains the error returned when parsing a string into a T.
TooFewFractionalDigits(usize)
The variant returned when a decimal string has fewer rational digits than allowed.
TooManyFractionalDigits(usize)
The variant returned when a decimal string has more rational digits than allowed.
Trait Implementations§
Source§impl<T> Debug for FromDecStrErr<T>where
T: Display,
impl<T> Debug for FromDecStrErr<T>where
T: Display,
Source§impl<T> Display for FromDecStrErr<T>where
T: Display,
impl<T> Display for FromDecStrErr<T>where
T: Display,
Auto Trait Implementations§
impl<T> Freeze for FromDecStrErr<T>where
T: Freeze,
impl<T> RefUnwindSafe for FromDecStrErr<T>where
T: RefUnwindSafe,
impl<T> Send for FromDecStrErr<T>where
T: Send,
impl<T> Sync for FromDecStrErr<T>where
T: Sync,
impl<T> Unpin for FromDecStrErr<T>where
T: Unpin,
impl<T> UnwindSafe for FromDecStrErr<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