Traits in Rust
Introduction
Traits are functionality that a type shares with other types. We use traits to define such behavior in an abstract way.
Example
Let's say we have two structs of Pokemon and Digimon. Now both Pokemon and Digimon have a special move that w...
diptobiswas.hashnode.dev3 min read