Struct hetu::SsnPattern
source · pub struct SsnPattern {
pub d1: Option<u8>,
pub d2: Option<u8>,
pub m1: Option<u8>,
pub m2: Option<u8>,
pub y1: Option<u8>,
pub y2: Option<u8>,
pub sep: Option<char>,
pub i1: Option<u8>,
pub i2: Option<u8>,
pub i3: Option<u8>,
pub check: Option<char>,
}
Fields§
§d1: Option<u8>
§d2: Option<u8>
§m1: Option<u8>
§m2: Option<u8>
§y1: Option<u8>
§y2: Option<u8>
§sep: Option<char>
§i1: Option<u8>
§i2: Option<u8>
§i3: Option<u8>
§check: Option<char>
Implementations§
source§impl SsnPattern
impl SsnPattern
pub fn new() -> SsnPattern
pub fn parse(p: &str) -> Result<SsnPattern, ParseError<'_>>
Trait Implementations§
source§impl Clone for SsnPattern
impl Clone for SsnPattern
source§fn clone(&self) -> SsnPattern
fn clone(&self) -> SsnPattern
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SsnPattern
impl Debug for SsnPattern
source§impl Default for SsnPattern
impl Default for SsnPattern
source§fn default() -> SsnPattern
fn default() -> SsnPattern
Returns the “default value” for a type. Read more
source§impl PartialEq for SsnPattern
impl PartialEq for SsnPattern
source§fn eq(&self, other: &SsnPattern) -> bool
fn eq(&self, other: &SsnPattern) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SsnPattern
impl Eq for SsnPattern
impl StructuralPartialEq for SsnPattern
Auto Trait Implementations§
impl Freeze for SsnPattern
impl RefUnwindSafe for SsnPattern
impl Send for SsnPattern
impl Sync for SsnPattern
impl Unpin for SsnPattern
impl UnwindSafe for SsnPattern
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