pub enum DigitsError {
Length {
len: usize,
expected: &'static str,
},
NotDigit {
position: usize,
},
CheckDigit {
found: u32,
expected: u32,
},
Mcc {
mcc: u16,
},
}Expand description
Error in a digit string.
Variants§
Length
The string has the wrong number of digits.
NotDigit
A character is not an ASCII digit.
CheckDigit
The Luhn check digit is wrong.
Mcc
The MCC of an IMSI is not plausible.
Trait Implementations§
Source§impl Clone for DigitsError
impl Clone for DigitsError
Source§fn clone(&self) -> DigitsError
fn clone(&self) -> DigitsError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DigitsError
Source§impl Debug for DigitsError
impl Debug for DigitsError
Source§impl Display for DigitsError
impl Display for DigitsError
impl Eq for DigitsError
Source§impl Error for DigitsError
impl Error for DigitsError
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 DigitsError
impl PartialEq for DigitsError
impl StructuralPartialEq for DigitsError
Auto Trait Implementations§
impl Freeze for DigitsError
impl RefUnwindSafe for DigitsError
impl Send for DigitsError
impl Sync for DigitsError
impl Unpin for DigitsError
impl UnsafeUnpin for DigitsError
impl UnwindSafe for DigitsError
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