Crate opltypes

Source
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.
BirthYearRange
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.
ExportRow
Common human-facing serialization format for a single row of exported data.
Points
Represents numbers describing points, like Wilks and Glossbrenner.
PrettyAge
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.
WeightAny
Represents numbers describing absolute weights in their final format for printing (either Kg or Lbs).
WeightKg
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.
BirthYearClass
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.
MeetPathError
Possible failures when constructing a MeetPath.
Place
The definition of the “Place” column.
PointsSystem
Enum of known powerlifting points systems, like Wilks and Glossbrenner.
Rule
A rule of competition.
Sex
The Sex column.
WeightClassAny
Displayable, unit-less variant of WeightClassKg.
WeightClassKg
The definition of the “WeightClassKg” column.
WeightUnits
Units of weight.
WritingSystem
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.