Useful Links
Computer Science
Programming
By Language
Rust Programming
1. Getting Started with Rust
2. Rust Fundamentals
3. Understanding Ownership
4. Structuring Data with Structs
5. Enums and Pattern Matching
6. Managing Growing Projects
7. Common Collections
8. Error Handling
9. Generic Types, Traits, and Lifetimes
10. Writing Automated Tests
11. Functional Programming Features
12. Smart Pointers
13. Fearless Concurrency
14. Advanced Features
15. Foreign Function Interface
16. Rust Patterns and Best Practices
Rust Fundamentals
Variables and Mutability
Variable Bindings with let
Immutability by Default
Mutable Variables with mut
Variable Shadowing
Scope and Lifetime Basics
Constants with const
Static Variables with static
Naming Conventions
Scalar Data Types
Integer Types
Signed Integers
i8, i16, i32, i64, i128
isize Architecture-Dependent
Unsigned Integers
u8, u16, u32, u64, u128
usize Architecture-Dependent
Integer Literals
Decimal Literals
Hexadecimal Literals
Octal Literals
Binary Literals
Byte Literals
Type Suffixes
Integer Overflow Behavior
Debug Mode Panics
Release Mode Wrapping
Explicit Overflow Methods
Floating-Point Types
f32 Single Precision
f64 Double Precision
Floating-Point Literals
Scientific Notation
Precision and Rounding Considerations
Special Values
Infinity
NaN
Boolean Type
bool Type
true and false Literals
Boolean Operations
Logical Operators
Character Type
char Type
Unicode Scalar Values
Character Literals
Escape Sequences
Unicode Escape Sequences
Compound Data Types
Tuples
Tuple Definition Syntax
Accessing Tuple Elements
Dot Notation
Pattern Matching
Destructuring Tuples
Unit Type
Tuple Type Annotations
Arrays
Array Definition Syntax
Fixed-Size Collections
Array Type Annotations
Accessing Array Elements
Array Bounds Checking
Array Initialization
Explicit Values
Repeated Values
Iterating Over Arrays
Functions
Function Definition Syntax
Function Naming Conventions
Parameters and Arguments
Parameter Types
Multiple Parameters
Parameter Patterns
Function Bodies
Statements vs Expressions
Expression-Based Returns
Explicit Return Statement
Return Types
Unit Return Type
Explicit Return Types
Type Inference
Function Signatures
Function Pointers
Higher-Order Functions
Comments and Documentation
Line Comments
Block Comments
Documentation Comments
Outer Doc Comments
Inner Doc Comments
Doc Comment Syntax
Markdown in Documentation
Code Examples in Documentation
Generating Documentation
Viewing Documentation Locally
Control Flow
Conditional Expressions
if Expressions
else if Expressions
else Expressions
if as Expression
Conditional Assignment
Repetition and Loops
loop Infinite Loops
Breaking from Loops
Continuing Loops
Loop Labels
Returning Values from Loops
while Conditional Loops
Condition Evaluation
Loop Variables
for Loops
Range Iteration
Collection Iteration
Iterator Patterns
Pattern Matching in Control Flow
Basic Pattern Matching
Destructuring Patterns
Guard Conditions
Previous
1. Getting Started with Rust
Go to top
Next
3. Understanding Ownership