easy-rust
contains easy manual of Rust language.
The Rust
language gets rid of some issues that C
and C++
languages have.
Problems in C/C++ | Solution |
---|---|
Double free | Move semantics and scope based resource management. |
Use after free (aka dangling pointers) | Borrow checker tracks references lifetimes, i.e., reference can’t outlive its owner. |
Buffer overflow | slice types and .last() /.last_mut() methods for sequences. |
- Rust toolchain
- Workspaces. Packages. Crates
- Basics
- Basic types
- Ownership. Borrowing. Lifetimes
- Generics
- Traits
- Common traits
- Option and Result
- Error handling
- Tests
- Smart pointers
- Iterators
- Closures
- Unsafe
- Macros
- Concurrency
- Useful crates
- Crates for configuration
- Hashmap
- Logging
- Serde