pub enum Rule {
Show 18 variants
EOI,
file,
record,
date,
day,
month,
year,
exercise_name,
target,
target_sets,
target_min_reps,
target_max_reps,
set_group,
set,
attempt,
weight,
reps,
WHITESPACE,
}Variants§
EOI
End-of-input
file
Represents the start of input in the file.
record
Represents a complete record entry, formatted as:
date / exercise_name / target / set_group
date
Represents a date, formatted as day.month.year.
day
month
year
exercise_name
Represents the name of an exercise, consisting of any character sequence
that does not include a forward slash /.
target
Represents a target for the exercise, formatted as (sets x min_reps - max_reps).
target_sets
Represents the number of sets in a target.
target_min_reps
Represents the minimum number of repetitions for a set in a target.
target_max_reps
Represents the maximum number of repetitions for a set in a target.
set_group
Represents a group of sets, formatted as set; set; ....
set
Represents a set entry, formatted as one or more attempts, separated by commas.
attempt
Represents a single attempt in a set, formatted as weight - reps.
weight
Represents the weight used in an attempt.
reps
Represents the number of repetitions performed in an attempt.
WHITESPACE
Represents whitespace characters (e.g., spaces) that are ignored in parsing.