Conceptual Example
A conceptual Strategy example via traits.
conceptual.rs
Output
Functional approach
Functions and closures simplify Strategy implementation as you can inject behavior right into the object without complex interface definition.
It seems that Strategy is often implicitly and widely used in the modern development with Rust, e.g. it's just like iterators work:
functional.rs
Output