Expand description
A collection of data types used in the OpenPowerlifting database.
Modules§
- states
- Data types for the MeetState column.
Structs§
- AgeRange
- The AgeRange used by the checker for interpreting age data.
- Birth
Year Range - The BirthYearRange used by the checker for interpreting BirthYear data.
- Date
- Our data uses imprecise dates in the “YYYY-MM-DD” format, with no timezone or time data.
- Event
- The definition of the “Event” column.
An
Event
is represented as a bitfield, with one bit for each of S, B, and D. - Export
Row - Common human-facing serialization format for a single row of exported data.
- Points
- Represents numbers describing points, like Wilks and Glossbrenner.
- Pretty
Age - An opaque wrapper for
Age
that serializes to “23~” instead of “23.5”. - RuleSet
- Packed storage for all active RuleSet.
- Username
- A lifter’s username.
- Weight
Any - Represents numbers describing absolute weights in their final format for printing (either Kg or Lbs).
- Weight
Kg - Represents numbers describing absolute weights.
Enums§
- Age
- The reported age of the lifter at a given meet. In the CSV file, approximate ages are reported with ‘.5’ added.
- AgeClass
- The AgeClass used by the server for partitioning into age categories.
- Birth
Year Class - 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.
- Country
- The Country column.
- Equipment
- The Equipment field.
- Federation
- Enum of federations.
- Meet
Path Error - Possible failures when constructing a MeetPath.
- Place
- The definition of the “Place” column.
- Points
System - Enum of known powerlifting points systems, like Wilks and Glossbrenner.
- Rule
- A rule of competition.
- Sex
- The Sex column.
- Weight
Class Any - Displayable, unit-less variant of WeightClassKg.
- Weight
Class Kg - The definition of the “WeightClassKg” column.
- Weight
Units - Units of weight.
- Writing
System - Writing systems for characters, for categorization.
Functions§
- dir_
to_ meetpath - Gets the MeetPath from a string representing a directory.
- file_
to_ meetpath - Gets the MeetPath from a string representing a filepath.
- infer_
writing_ system - Returns the likely writing system of a string.
- writing_
system - Get the WritingSystem for the current character.