Struct idcard_cn::IdentityNumber [−][src]
第二代中华人民共和国身份证公民身份号码。包括身份证持有人出生时行政区划分代码(6位数字)、 出生日期(8位数字)、 当日出生顺序号(3位数字),以及一位的校验码。
结构中不需要存校验码,只有合法的身份号码才能被转换成该结构体。
Trait Implementations
impl Debug for IdentityNumber
[src]
impl FromStr for IdentityNumber
[src]
type Err = InvalidId
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl PartialEq<IdentityNumber> for IdentityNumber
[src]
fn eq(&self, other: &IdentityNumber) -> bool
[src]
fn ne(&self, other: &IdentityNumber) -> bool
[src]
impl StructuralPartialEq for IdentityNumber
[src]
Auto Trait Implementations
impl RefUnwindSafe for IdentityNumber
impl Send for IdentityNumber
impl Sync for IdentityNumber
impl Unpin for IdentityNumber
impl UnwindSafe for IdentityNumber
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,