[−][src]Enum kennitolur::KennitalaError
Errors which can come up when validating a given kennitala.
Variants
InvalidNumber(ParseIntError)
The string given cannot be coverted into a valid u32
number.
The 1st and 2nd digits representing the day of birth are invalid for the given month and year.
The 3rd and 4th digits representing the month of birth are invalid.
The 7th and 8th digits, which can be from 20 up to 99, are not in said range.
The 9th digit -- containing the checksum for this kennital --is invalid.
The 10th digit -- representing the century of birth -- is not 9
or
0
. This means that the person was born in the future!
Trait Implementations
impl Clone for KennitalaError
[src]
fn clone(&self) -> KennitalaError
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for KennitalaError
[src]
impl Display for KennitalaError
[src]
impl Error for KennitalaError
[src]
Auto Trait Implementations
impl RefUnwindSafe for KennitalaError
impl Send for KennitalaError
impl Sync for KennitalaError
impl Unpin for KennitalaError
impl UnwindSafe for KennitalaError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,