pub enum ParsePaddedNumberError {
TooShort(u8, u8),
TooLong(u8, u8),
InvalidNumber(ParseIntError),
}Expand description
Error originating from PaddedNumber::try_new
Variants§
TooShort(u8, u8)
“too few digits provided, expected at least ‘{0}’, received ‘{1}’”
TooLong(u8, u8)
“too many digits provided, expected at most ‘{0}’, received ‘{1}’”
InvalidNumber(ParseIntError)
“integer parse error, encountered non-ascii digit”
Trait Implementations§
Source§impl Debug for ParsePaddedNumberError
impl Debug for ParsePaddedNumberError
Source§impl Display for ParsePaddedNumberError
impl Display for ParsePaddedNumberError
Source§impl Error for ParsePaddedNumberError
impl Error for ParsePaddedNumberError
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 ParsePaddedNumberError
impl PartialEq for ParsePaddedNumberError
impl StructuralPartialEq for ParsePaddedNumberError
Auto Trait Implementations§
impl Freeze for ParsePaddedNumberError
impl RefUnwindSafe for ParsePaddedNumberError
impl Send for ParsePaddedNumberError
impl Sync for ParsePaddedNumberError
impl Unpin for ParsePaddedNumberError
impl UnwindSafe for ParsePaddedNumberError
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