Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

Rust Programming Tutorial #23 – Implementing Traits

24K views on YouTube

dcode 42 tutorials here

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!