Traits: Rust's take on interfaces
We know structs represents complex data types. Rust's struct acts more like classes in Python and C++ once we implements struct using impl keyword and you have self to access structs attributes. However, struct doesn't support inheritance. So in that...
Oct 19, 20224 min read156
