pub enum WordError {
Empty,
TooLong(usize),
InvalidDigit {
offset: usize,
character: char,
},
}Expand description
Why a string is not a word.
Variants§
Empty
The digits after the optional 0x prefix are missing.
TooLong(usize)
More digits than a 256-bit word holds, leading zeros aside.
InvalidDigit
A character that is not a hex digit, at its byte offset after any 0x prefix.
Trait Implementations§
impl Eq for WordError
Source§impl Error for WordError
impl Error for WordError
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()
impl StructuralPartialEq for WordError
Auto Trait Implementations§
impl Freeze for WordError
impl RefUnwindSafe for WordError
impl Send for WordError
impl Sync for WordError
impl Unpin for WordError
impl UnsafeUnpin for WordError
impl UnwindSafe for WordError
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