pub struct Iban(/* private fields */);Expand description
A validated International Bank Account Number in compact uppercase form.
Implementations§
Source§impl Iban
impl Iban
Sourcepub fn format_grouped(&self) -> String
pub fn format_grouped(&self) -> String
Returns the IBAN grouped with spaces every four characters.
Sourcepub fn country_code(&self) -> &str
pub fn country_code(&self) -> &str
Returns the two-letter country code.
Sourcepub fn check_digits(&self) -> &str
pub fn check_digits(&self) -> &str
Returns the two numeric check digits.
Trait Implementations§
impl Eq for Iban
Source§impl Ord for Iban
impl Ord for Iban
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Iban
impl PartialOrd for Iban
impl StructuralPartialEq for Iban
Auto Trait Implementations§
impl Freeze for Iban
impl RefUnwindSafe for Iban
impl Send for Iban
impl Sync for Iban
impl Unpin for Iban
impl UnsafeUnpin for Iban
impl UnwindSafe for Iban
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