Rust
Rust is a blazing fast and memory-efficient static language with no runtime or garbage collector. Learn Rust programming language.
Welcome to the Rust documentation!
Rust is designed for performance and safety, especially safe concurrency. With zero-cost abstractions, fearless concurrency, and an incredibly robust type system, Rust empowers you to build reliable and efficient software.
Explore the chapters below to dive deep into the Rust programming language.
Getting Started With Rust
- Why Rust
- Installation And Setup
- A Tour Of Rust
Core Programming Concepts
- Variables And Mutability
- Data Types
- Functions And Control Flow
- Expressions
Ownership References And Lifetimes
- Ownership
- References In Depth
- Validating References With Lifetimes
- Understanding The Borrow Checker
Structs Enums And Pattern Matching
- Structs
- Enums
- Patterns And Matching
Error Handling
- Unrecoverable Errors With Panic
- Recoverable Errors With Result
- Option And Result Transforms
- Type Conversions And Error Handling
Packages Crates And Modules
- Packages And Crates
- Modules And Visibility
- The Module System In Detail
- Cargo Workspaces
Common Collections And Iterators
- Vectors Strings And Hash Maps Basics
- Detailed Collections
- Iterators
Traits And Generics
- Generic Data Types
- Traits Defining Shared Behavior
- Advanced Trait Features
- Standard Traits Familiarization
- Utility Traits Deep Dive
- Operator Overloading
Closures And Functional Language Features
- Closures
- Iterators Recap And Deepening With Closures
Smart Pointers
- Boxt For Heap Allocation
- Deref Trait And Deref Coercion
- The Drop Trait For Cleanup
- Rct The Reference Counted Smart Pointer
- Refcellt And The Interior Mutability Pattern
- Shared Ownership With Rc And Arc
- Smart Pointer Recap Choosing The Right Pointer
Objectoriented Programming Features
- Characteristics Of Objectoriented Programming
- Trait Objects For Polymorphic Code
- Implementing An Objectoriented Design Pattern
Concurrency And Parallelism
- Fearless Concurrency
- Advanced Concurrency
- Concurrency Safety And Best Practices