[−][src]Enum hex::FromHexError
The error type for decoding a hex string into Vec<u8>
or [u8; N]
.
Variants
InvalidHexCharacter
An invalid character was found. Valid ones are: 0...9
, a...f
or A...F
.
Fields of InvalidHexCharacter
OddLength
A hex string's length needs to be even, as two digits correspond to one byte.
InvalidStringLength
If the hex string is decoded into a fixed sized container, such as an array, the hex string's length * 2 has to match the container's length.
Trait Implementations
impl PartialEq<FromHexError> for FromHexError
[src]
fn eq(&self, other: &FromHexError) -> bool
[src]
fn ne(&self, other: &FromHexError) -> bool
[src]
impl Clone for FromHexError
[src]
fn clone(&self) -> FromHexError
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for FromHexError
[src]
impl Debug for FromHexError
[src]
impl Display for FromHexError
[src]
impl Error for FromHexError
[src]
fn description(&self) -> &str
[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
The lower-level cause of this error, if any. Read more
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
The lower-level source of this error, if any. Read more
Auto Trait Implementations
impl Send for FromHexError
impl Sync for FromHexError
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,