Chapter 12 - Traits - Rust Crash Course 🦀

Part of the Rust Crash Course: Welcome to the Rust Crash Course In this course, we will be learning Rust from scratch. This course is very fast paced and designed for programmers who already have some experience with another programming language such as Dart or JavaScript or Swift. We will talk about variables, constants, ownership, functions, structures, enumerations, collections such as tuples, vectors, hash-maps and iterators, optionals, error handling, lifetime specifiers, traits, pointers, generics, packages, crates, modules and paths, asynchronous programming and we will also create 2 sample applications using Rust to put all these concepts to use! In this chapter we are going to learn about traits, or protocols / interfaces as they are also called in Swift and Java. They are called mixins in Dart too. Traits are reusable pieces of code that allow you to plug in the code into existing structs and enums!
Back to Top