pub fn format(&self) -> FormattedPersonnummer {
        let day = self.date.day();
        let day_or_coordination = if self.coordination {
            day + COORDINATION_NUMBER
        } else {
            day
        };

        let long = format!(
            "{}{:02}{:02}-{:03}{}",
            self.date.year(),
            self.date.month(),
            day_or_coordination,
            self.serial,
            self.control
        );

        let short = String::from(&long[2..]);

        FormattedPersonnummer { long, short }
    }
/// Returns a FormattedPersonnummer from a Personnummer which can be used to display a
/// normalized version of the Personnummer.
Returns a FormattedPersonnummer from a Personnummer which can be used to display a
normalized version of the Personnummer.
Returns a FormattedPersonnummer from a Personnummer which can be used to display a normalized version of the Personnummer .
pub fn format(&self) -> FormattedPersonnummer {
        let day = self.date.day();
        let day_or_coordination = if self.coordination {
            day + COORDINATION_NUMBER
        } else {
            day
        };
        let long = format!(
            "{}{:02}{:02}-{:03}{}",
            self.date.year(),
            self.date.month(),
            day_or_coordination,
            self.serial,
            self.control
        );
        let short = String::from(&long[2..]);
        FormattedPersonnummer { long, short }
    }
pub fn format ( & self ) -> FormattedPersonnummer { let day = self . date . day ( ) ; let day_or_coordination = if self . coordination { day + COORDINATION_NUMBER } else { day } ; let long = format ! ( " " self date year ( ) self date month ( ) day_or_coordination self serial self control ) ; let short = String :: from ( & long [ 2 .. ] ) ; FormattedPersonnummer { long , short } }
Returns a FormattedPersonnummer from a Personnummer which can be used to display a
normalized version of the Personnummer.
Returns a FormattedPersonnummer from a Personnummer which can be used to display a normalized version of the Personnummer .
&self
&self