pub enum InvalidData {
Syllable,
TooShort,
Checksum,
}Expand description
Error type for decoding data.
Variants§
Syllable
A syllable not present in the lookup table was found.
TooShort
The number of syllables was not enough to contain the checksum. Returned only when a checksum is used; empty strings are otherwise allowed.
Checksum
The checksum didn’t match that of the decoded data. Returned only when a checksum is used.
Trait Implementations§
Source§impl Clone for InvalidData
impl Clone for InvalidData
Source§fn clone(&self) -> InvalidData
fn clone(&self) -> InvalidData
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 InvalidData
impl Debug for InvalidData
Source§impl Display for InvalidData
impl Display for InvalidData
Source§impl Error for InvalidData
impl Error for InvalidData
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 Hash for InvalidData
impl Hash for InvalidData
Source§impl PartialEq for InvalidData
impl PartialEq for InvalidData
impl Copy for InvalidData
impl Eq for InvalidData
impl StructuralPartialEq for InvalidData
Auto Trait Implementations§
impl Freeze for InvalidData
impl RefUnwindSafe for InvalidData
impl Send for InvalidData
impl Sync for InvalidData
impl Unpin for InvalidData
impl UnwindSafe for InvalidData
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