pub enum LuhnError {
NotUnique(char),
InvalidCharacter(char),
EmptyString,
}
Expand description
The error type for this crate.
Variants§
NotUnique(char)
The given alphabet has a duplicated character.
InvalidCharacter(char)
The input string has a character that is invalid for the alphabet.
EmptyString
The input was the empty string or a single character.
Trait Implementations§
Source§impl Ord for LuhnError
impl Ord for LuhnError
Source§impl PartialOrd for LuhnError
impl PartialOrd for LuhnError
impl Eq for LuhnError
impl StructuralPartialEq for LuhnError
Auto Trait Implementations§
impl Freeze for LuhnError
impl RefUnwindSafe for LuhnError
impl Send for LuhnError
impl Sync for LuhnError
impl Unpin for LuhnError
impl UnwindSafe for LuhnError
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