pub enum ParseHexError {
InvalidLength {
expected: usize,
actual: usize,
},
InvalidHexCharacter {
c: char,
index: usize,
},
}Available on crate feature
hex only.Expand description
Error returned by HexArray::from_str.
Variants§
InvalidLength
The input string had the wrong length.
Fields
InvalidHexCharacter
The input contained an invalid hex character.
Trait Implementations§
Source§impl Clone for ParseHexError
impl Clone for ParseHexError
Source§fn clone(&self) -> ParseHexError
fn clone(&self) -> ParseHexError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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
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()
Source§impl PartialEq for ParseHexError
impl PartialEq for ParseHexError
impl Eq for ParseHexError
impl StructuralPartialEq for ParseHexError
Auto Trait Implementations§
impl Freeze for ParseHexError
impl RefUnwindSafe for ParseHexError
impl Send for ParseHexError
impl Sync for ParseHexError
impl Unpin for ParseHexError
impl UnsafeUnpin 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