Enum IbanError
pub enum IbanError {
Empty,
InvalidLength,
InvalidCountryCode,
InvalidCheckDigits,
InvalidCharacter,
UnsupportedCountryCode,
InvalidCountryLength,
InvalidChecksum,
}Expand description
Errors returned while constructing IBAN values.
Variants§
Empty
The input was empty after trimming whitespace and spaces.
InvalidLength
The compact IBAN was shorter than four characters or longer than 34 characters.
InvalidCountryCode
The country code was not two uppercase ASCII letters.
InvalidCheckDigits
The check digits were not two ASCII digits.
InvalidCharacter
The IBAN contained a character other than an ASCII letter, digit, or space.
UnsupportedCountryCode
The country code is not present in the static IBAN length table.
InvalidCountryLength
The compact IBAN length did not match the country-specific IBAN length.
InvalidChecksum
The standard mod-97 checksum failed.
Trait Implementations§
§impl Error for IbanError
impl Error for IbanError
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 Copy for IbanError
impl Eq for IbanError
impl StructuralPartialEq for IbanError
Auto Trait Implementations§
impl Freeze for IbanError
impl RefUnwindSafe for IbanError
impl Send for IbanError
impl Sync for IbanError
impl Unpin for IbanError
impl UnsafeUnpin for IbanError
impl UnwindSafe for IbanError
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