pub enum BirthYearClass {
None,
ClassY14Y18,
ClassY19Y23,
ClassY24Y39,
ClassY40Y49,
ClassY50Y59,
ClassY60Y69,
ClassY70Y999,
}Expand description
A BirthYearClass is similar to an AgeClass: instead of being based off Age, it is based off the BirthYear. This is primarily used by IPF federations.
The order of the definitions matters: OpenIPF uses >= comparisons for class matching.
Variants§
None
No assignable BirthYearClass.
ClassY14Y18
From the year the lifter turns 14 and throughout the year the lifter turns 18. This is IPF “Sub-Juniors”.
ClassY19Y23
From the year the lifter turns 19 and throughout the year the lifter turns 23. This is IPF “Juniors”.
ClassY24Y39
From the year the lifter turns 24 and throughout the year the lifter turns 39. This is IPF “Seniors”.
ClassY40Y49
From the year the lifter turns 40 and throughout the year the lifter turns 49. This is IPF “Masters 1”.
ClassY50Y59
From the year the lifter turns 50 and throughout the year the lifter turns 59. This is IPF “Masters 2”.
ClassY60Y69
From the year the lifter turns 60 and throughout the year the lifter turns 69. This is IPF “Masters 3”.
ClassY70Y999
From the year the lifter turns 70 and thereafter. This is IPF “Masters 4”.
Implementations§
Source§impl BirthYearClass
impl BirthYearClass
Sourcepub fn from_birthyear(birth_year: u32, meet_year: u32) -> BirthYearClass
pub fn from_birthyear(birth_year: u32, meet_year: u32) -> BirthYearClass
Assign a BirthYearClass based on BirthYear.
Sourcepub fn from_range(range: BirthYearRange, meet_year: u32) -> BirthYearClass
pub fn from_range(range: BirthYearRange, meet_year: u32) -> BirthYearClass
Assign a BirthYearClass based on a range of BirthYears.
The range generally comes from a configured Division.
Trait Implementations§
Source§impl Clone for BirthYearClass
impl Clone for BirthYearClass
Source§fn clone(&self) -> BirthYearClass
fn clone(&self) -> BirthYearClass
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more