Struct hetu::Ssn
[−]
[src]
pub struct Ssn { pub day: usize, pub month: usize, pub year: usize, pub gender: Gender, }
Fields
day: usize
month: usize
year: usize
gender: Gender
Methods
impl Ssn
[src]
fn parse(ssn: &str) -> Result<Ssn, ParseError>
[src]
Parse HETU.
fn generate() -> String
[src]
Generate random HETU.
fn generate_by_pattern(pattern: &SsnPattern) -> Result<String, GenerateError>
[src]
Generate HETU with matching fields.
Trait Implementations
impl Copy for Ssn
[src]
impl Clone for Ssn
[src]
fn clone(&self) -> Ssn
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Ssn
[src]
impl PartialEq for Ssn
[src]
fn eq(&self, __arg_0: &Ssn) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Ssn) -> bool
[src]
This method tests for !=
.