pub enum HexStringError {
InvalidCharacter(char),
InvalidStringLength,
InvalidNibble(u8),
}
Variants§
InvalidCharacter(char)
There was an invalid character in the hex string
InvalidStringLength
All hex strings must be an even length in order to represent bytes because each two characters represents one byte
InvalidNibble(u8)
Somehow the conversion function tried to convert a value outside the range of 0-15
(inclusive) into a hex value. This should only be raised from a direct call to
nibble_to_hexchar
, or in the case of a bug in this module.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HexStringError
impl RefUnwindSafe for HexStringError
impl Send for HexStringError
impl Sync for HexStringError
impl Unpin for HexStringError
impl UnwindSafe for HexStringError
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