Struct bank::scr::RF
[−]
[src]
pub struct RF { /* fields omitted */ }
Methods
impl RF
[src]
fn calculate_check(&self) -> u8
fn new(input: &str) -> Result<RF, &'static str>
Creates a SEPA RF
from a seed.
The seed's length needs to be at least one, and at most 21.
Example
let rf = bank::scr::RF::new("I201709").unwrap(); assert_eq!(rf.to_string(), "RF93 I20 1709");
Trait Implementations
impl Debug for RF
[src]
impl Eq for RF
[src]
impl PartialEq for RF
[src]
fn eq(&self, __arg_0: &RF) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &RF) -> bool
This method tests for !=
.
impl FromStr for RF
[src]
type Err = &'static str
The associated error which can be returned from parsing.
fn from_str(input: &str) -> Result<RF, Self::Err>
Parses a string s
to return a value of this type. Read more