pub struct HexLengthError {
pub type_name: &'static str,
pub expected: usize,
pub got: String,
}Expand description
A hex string of the wrong length or alphabet for the type it was parsed into
Fields§
§type_name: &'static str§expected: usize§got: StringTrait Implementations§
Source§impl Clone for HexLengthError
impl Clone for HexLengthError
Source§fn clone(&self) -> HexLengthError
fn clone(&self) -> HexLengthError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HexLengthError
impl Debug for HexLengthError
Source§impl Display for HexLengthError
impl Display for HexLengthError
impl Eq for HexLengthError
Source§impl Error for HexLengthError
impl Error for HexLengthError
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 HexLengthError
impl PartialEq for HexLengthError
impl StructuralPartialEq for HexLengthError
Auto Trait Implementations§
impl Freeze for HexLengthError
impl RefUnwindSafe for HexLengthError
impl Send for HexLengthError
impl Sync for HexLengthError
impl Unpin for HexLengthError
impl UnsafeUnpin for HexLengthError
impl UnwindSafe for HexLengthError
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