Expand description
This module contains the implementation of a parser for workout data.
The parser is implemented using the pest parser generator and is used to parse workout data in a custom format. The parsed data is then used to generate workout plans and track progress.
Modules§
Structs§
- Exercise
- A struct representing an exercise, actually, a single set
- Set
- Represents a set in weightlifting, consisting of a weight and the number of repetitions performed.
Enums§
Functions§
- get_
exercise_ from_ pairs - Parses an exercise from a
Pair
and returns a vector ofExercise
s. - parse_
set - Parses a set of exercises from a
Pair
object. - parse_
workout - Parses a workout input string and returns a vector of exercises.