Rust Programming Tutorial #23 – Implementing Traits
24K views on YouTube
Similar to interfaces in other languages, traits in Rust allow you to define methods that should be on a struct – in this video we look at implementing the ToString trait on a custom-made object to create a to_string() method.
Pretty sick.
If this video helped you out and you’d like to see more, make sure to leave a like and subscribe to dcode!