pub fn parse_workout(input: &str) -> Result<Vec<Exercise>, Error>
Expand description

Parses a workout input string and returns a vector of exercises.

Arguments

  • input - A string slice that holds the workout input.

Returns

  • Result<Vec<Exercise>, Error> - A Result that holds a vector of Exercises if parsing was successful, or an Error if parsing failed.