Function parse_set
Source pub fn parse_set(name: String, pair: Pair<'_, Rule>) -> Result<Exercise, Error>
Expand description
Parses a set of exercises from a Pair object.
§Arguments
name - A String representing the name of the exercise.
pair - A Pair object representing the set of exercises to parse.
§Returns
Returns a Result containing an Exercise object if parsing was successful, or an Error if parsing failed.