Introducing traits in Rust – what they are and how to use them

Rust is a programming language with a different take on object orientation – why use objects to define interfaces? Rust prefers its own mechanism: traits. This tutorial walks you through what a “trait” is and how to work with them to create reliable, robust code.