Learn Rust by Example: Rust Structs, Impl, and Traits.
- Lesson 1: Define Structs
- Lesson 2: Pass Structs to Function
- Lesson 3: Define Method (impl) to Struct
- Lesson 4: Define Trait to Struct
- Lesson 5: Combine all lessons
This github code repository is a companion to a Medium article => Learn Rust by Example: Structs, Methods (Impl), and Traits (https://sungkim11.medium.com/learn-rust-by-example-structs-methods-impl-and-traits-de11e8d02b68)