Hello.
I'm playing with the design pattern - strategy.
I wrote this example:
Rust Playground
Assumptions/Comments:
- The Converter structure is responsible for the general implementation of the program (common functions).
- A specific algorithm (strategy) is performed using the DataProcess feature.
- There will be about 4 specific algorithms.
(There is no need to create an abstraction factory?)
What else can be improved or changed?
Edit:
- added commons
References: