Description
In this course, you will learn :
- Write clean and reusable Rust code for your applications.
- Use loop, map, filter and fold to avoid duplicated code.
- Understand generics and learn to use it to abstract algorithms for multiple data types.
- Define and enforce clear interface using traits.
- Work with macros and compiler plugins for metaprogramming.
- Explore how the standard library uses features such as generics, traits and macros.
- Structure your code with modules and crates and publish them online.
Syllabus :
1. Basics of Code Reuse
- Setting Up the Rust Development Environment
- Exploring Code Reuse in Rust
- Loops and Iterators
- Using Functional Programming Loops
- Functions in Rust
2. Using Generics in Rust
- Use Generic Functions to Reuse Algorithms
- Reuse Structures in Enums and Structs
- Working with Generic in Struct Methods
- Generics in the Rust Standard Library
3. Defining Interfaces with Traits
- Using Trait Bounds and Trait Objects to Communicate Interfaces
- Associated Types versus Generics and Trait Inheritance
- Exploring Traits, Generics, and Performance
- Traits in the Rust Standard Library
4. Hacking the Language with Macros and Compiler Plugins
- Use Declarative Macros to Write Less Code
- Using Procedural Macros for Custom Derive
- Macros in the Rust Standard Library
5. Reusing the Code with Other People Using Modules and Crates
- Using Modules to Define the Structure of Crates
- Using a Crate with Cargo.toml
- Publishing to crates.io