
Understand Rust by following the values. Rust Programming Tutorial: Ownership, Types, and Concurrency is a concise introduction for programmers and students who already understand basic programming but are new to Rust. Across eleven chapters, the book connects Rust’s syntax to practical questions: Who owns this value? What can a reference access? How long can a borrowed result remain valid? When should data be moved, shared, or sent to another task? Topics include: Ownership, borrowing, moves, and automatic cleanup. Arrays, slices, String, and the differences between &str, &mut str, and &mut String. Reference lifetimes, structs, enums, pattern matching, Option, and Result. Generics, trait bounds, trait objects, closures, and iterators. Shared ownership and interior mutability with Box, Rc, Weak, Cell, RefCell, and Arc. Threads, scoped borrowing, mutexes, and message passing. Futures, concurrent waiting, and task cancellation with smol. Cargo projects, modules, public interfaces, macros, and tests. Runnable examples use stable Rust and the 2024 edition. Comments explain important operations beside the code, while assertions check the results. This is a focused language tutorial, not an exhaustive reference or a collection of large application projects. Its aim is to help you read Rust code and reason about the rules behind it.
| ASIN | B0HLL3MXVZ |
| Accessibility | Learn more |
| Enhanced typesetting | Enabled |
| File size | 783 KB |
| Language | English |
| Page Flip | Enabled |
| Print length | 138 pages |
| Publication date | 25 Oct. 2026 |
| Screen Reader | Supported |
| Word Wise | Not Enabled |
| X-Ray | Not Enabled |
Trustpilot
2 weeks ago
3 days ago