pub enum HexError {
InvalidHexCharacter(usize),
OddLengthInput,
InsufficientOutputBufferSize,
}Expand description
Return type for errors relating to Hex encoding and decoding.
Variants§
InvalidHexCharacter(usize)
Invalid hex character encountered at the given index.
OddLengthInput
Since hex encodes each byte as two characters, the input must have an even length.
InsufficientOutputBufferSize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HexError
impl RefUnwindSafe for HexError
impl Send for HexError
impl Sync for HexError
impl Unpin for HexError
impl UnsafeUnpin for HexError
impl UnwindSafe for HexError
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