[−][src]Enum iban::ParseBaseIbanError
Indicates that the string does not follow the basic IBAN rules.
Example
An example of parsing invalid IBANs:
use iban::{BaseIban, ParseBaseIbanError}; // Invalid formatting because the spaces are in the wrong places assert_eq!( "MR0 041 9".parse::<BaseIban>(), Err(ParseBaseIbanError::InvalidFormat) ); // This IBAN follows the correct basic format but has an invalid checksum assert_eq!( "MR00 0002 0001 0100 0012 3456 754".parse::<BaseIban>(), Err(ParseBaseIbanError::InvalidChecksum) );
Variants
The string doesn't have the correct format to be an IBAN. This can be because it's too short, too long or because it contains unexpected characters at some location.
The IBAN has an invalid structure.
Trait Implementations
impl Clone for ParseBaseIbanError
[src]
fn clone(&self) -> ParseBaseIbanError
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ParseBaseIbanError
[src]
impl Debug for ParseBaseIbanError
[src]
impl Display for ParseBaseIbanError
[src]
impl Eq for ParseBaseIbanError
[src]
impl Error for ParseBaseIbanError
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<ParseBaseIbanError> for ParseIbanError
[src]
fn from(source: ParseBaseIbanError) -> ParseIbanError
[src]
impl Hash for ParseBaseIbanError
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<ParseBaseIbanError> for ParseBaseIbanError
[src]
fn eq(&self, other: &ParseBaseIbanError) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for ParseBaseIbanError
[src]
impl StructuralPartialEq for ParseBaseIbanError
[src]
Auto Trait Implementations
impl RefUnwindSafe for ParseBaseIbanError
impl Send for ParseBaseIbanError
impl Sync for ParseBaseIbanError
impl Unpin for ParseBaseIbanError
impl UnwindSafe for ParseBaseIbanError
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>,