Struct design_pattern_examples_rust::Exercise
source · pub(crate) struct Exercise {
pub(crate) exercise_name: String,
pub(crate) exercise_to_run: fn() -> Result<(), String>,
}
Expand description
Represents a single exercise or example for a design pattern.
Fields§
§exercise_name: String
Name of the exercise.
exercise_to_run: fn() -> Result<(), String>
Function to call to run the exercise.