pub enum RoutingNumberError {
InvalidLength,
NotDigits,
InvalidChecksum,
}Expand description
Errors returned while constructing routing numbers.
Variants§
InvalidLength
ABA routing numbers must be exactly nine digits.
NotDigits
ABA routing numbers must contain only digits.
InvalidChecksum
The ABA routing checksum failed.
Trait Implementations§
Source§impl Clone for RoutingNumberError
impl Clone for RoutingNumberError
Source§fn clone(&self) -> RoutingNumberError
fn clone(&self) -> RoutingNumberError
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 RoutingNumberError
Source§impl Debug for RoutingNumberError
impl Debug for RoutingNumberError
Source§impl Display for RoutingNumberError
impl Display for RoutingNumberError
impl Eq for RoutingNumberError
Source§impl Error for RoutingNumberError
impl Error for RoutingNumberError
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 RoutingNumberError
impl PartialEq for RoutingNumberError
Source§fn eq(&self, other: &RoutingNumberError) -> bool
fn eq(&self, other: &RoutingNumberError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RoutingNumberError
Auto Trait Implementations§
impl Freeze for RoutingNumberError
impl RefUnwindSafe for RoutingNumberError
impl Send for RoutingNumberError
impl Sync for RoutingNumberError
impl Unpin for RoutingNumberError
impl UnsafeUnpin for RoutingNumberError
impl UnwindSafe for RoutingNumberError
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