A very clear and concise article made by Rodrigo Santiago explaining in a sample case how Traits, generics, bounds and subtraits are used. (code optimization and polymorphism).
Enjoy here : How to Use Rust Traits, Generics and Bounds
![rust-traits-generics-bounds](https://rust-journey.com/wp-content/uploads/2024/02/rust-traits-generics-bounds.jpg)
A very clear and concise article made by Rodrigo Santiago explaining in a sample case how Traits, generics, bounds and subtraits are used. (code optimization and polymorphism).
Enjoy here : How to Use Rust Traits, Generics and Bounds