Enum hash40::errors::FromLabelError
source · pub enum FromLabelError {
LabelNotFound(String),
ParseError(ParseIntError),
}
Variants§
LabelNotFound(String)
The error returned only when the static label map is bidirectional, and a label cannot be matched to a hash
ParseError(ParseIntError)
The error returned when the hexadecimal part of the hash string cannot be parsed
Trait Implementations§
source§impl Clone for FromLabelError
impl Clone for FromLabelError
source§fn clone(&self) -> FromLabelError
fn clone(&self) -> FromLabelError
Returns a copy 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 FromLabelError
impl Debug for FromLabelError
source§impl Display for FromLabelError
impl Display for FromLabelError
source§impl From<ParseIntError> for FromLabelError
impl From<ParseIntError> for FromLabelError
source§fn from(err: ParseIntError) -> Self
fn from(err: ParseIntError) -> Self
Converts to this type from the input type.
source§impl PartialEq<FromLabelError> for FromLabelError
impl PartialEq<FromLabelError> for FromLabelError
source§fn eq(&self, other: &FromLabelError) -> bool
fn eq(&self, other: &FromLabelError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FromLabelError
impl StructuralEq for FromLabelError
impl StructuralPartialEq for FromLabelError
Auto Trait Implementations§
impl RefUnwindSafe for FromLabelError
impl Send for FromLabelError
impl Sync for FromLabelError
impl Unpin for FromLabelError
impl UnwindSafe for FromLabelError
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