pub enum ParseHexError {
Range {
min: usize,
max: usize,
got: usize,
},
Size {
expect: usize,
actual: usize,
},
Char {
val: char,
},
}
Expand description
error raised during hexadecimal parsing operations
Variants§
Range
hexadecimal buffer was outside allowed range
Size
hexadecimal buffer was of expected size
Char
non-hexadecimal character encountered
Trait Implementations§
Source§impl Debug for ParseHexError
impl Debug for ParseHexError
Source§impl Display for ParseHexError
impl Display for ParseHexError
Source§impl Error for ParseHexError
impl Error for ParseHexError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Source§impl From<ParseHexError> for Error
impl From<ParseHexError> for Error
Source§fn from(err: ParseHexError) -> Self
fn from(err: ParseHexError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParseHexError
impl RefUnwindSafe for ParseHexError
impl Send for ParseHexError
impl Sync for ParseHexError
impl Unpin for ParseHexError
impl UnwindSafe for ParseHexError
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