pub enum BcdError {
InvalidBcdNibble(u8),
NonDigitChar(char),
Overflow,
}Expand description
An error type indicating issues that occur during BCD parsing or conversion.
Variants§
InvalidBcdNibble(u8)
Indicates that a nibble (4-bit segment) of the provided BCD byte is invalid (greater than 9).
NonDigitChar(char)
Indicates that the input string contains non-digit characters.
Overflow
Indicates that the numeric value represented by the BCD number
exceeds the range of u64.
Trait Implementations§
Source§impl Error for BcdError
impl Error for BcdError
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()
impl StructuralPartialEq for BcdError
Auto Trait Implementations§
impl Freeze for BcdError
impl RefUnwindSafe for BcdError
impl Send for BcdError
impl Sync for BcdError
impl Unpin for BcdError
impl UnwindSafe for BcdError
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