pub enum HumanhashError {
EmptyInput,
InvalidHexCharacter(char),
InvalidWordCount(u8),
}Variants§
EmptyInput
Input contained no usable bytes (empty or whitespace-only).
InvalidHexCharacter(char)
Input contained a character that isn’t a hex digit (after stripping
0x, urn:uuid:, dashes, and whitespace).
InvalidWordCount(u8)
Requested word count was 0 or greater than MAX_WORDS.
Trait Implementations§
Source§impl Clone for HumanhashError
impl Clone for HumanhashError
Source§fn clone(&self) -> HumanhashError
fn clone(&self) -> HumanhashError
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 HumanhashError
impl Debug for HumanhashError
Source§impl Display for HumanhashError
impl Display for HumanhashError
Source§impl Error for HumanhashError
impl Error for HumanhashError
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 HumanhashError
impl PartialEq for HumanhashError
impl Eq for HumanhashError
impl StructuralPartialEq for HumanhashError
Auto Trait Implementations§
impl Freeze for HumanhashError
impl RefUnwindSafe for HumanhashError
impl Send for HumanhashError
impl Sync for HumanhashError
impl Unpin for HumanhashError
impl UnsafeUnpin for HumanhashError
impl UnwindSafe for HumanhashError
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