A comprehensive guide from installation to advanced patterns. Bilingual — hover or tap any paragraph to reveal Vietnamese translation.
Eliminate null pointers and data races at compile time
High-level code that compiles to bare-metal performance
Concurrent programming without data races, by design
Cargo, crates.io, and a thriving open source community
Rust's unique memory management model
Mô hình quản lý bộ nhớ độc đáo của Rust
References, borrowing rules, and slices
Tham chiếu, quy tắc mượn và slice
Custom data types with methods
Kiểu dữ liệu tùy chỉnh với phương thức
Enums, Option, Result, and match
Enum, Option, Result và match
Result, Option, and the ? operator
Result, Option và toán tử ?
Vec, String, and HashMap
Vec, String và HashMap
Polymorphism and abstraction in Rust
Đa hình và trừu tượng trong Rust
Lifetime annotations and elision rules
Chú thích thời gian sống và quy tắc bỏ qua
Functional programming patterns
Các mẫu lập trình hàm
Box, Rc, Arc, and RefCell
Box, Rc, Arc và RefCell
Threads, channels, and shared state
Luồng, kênh và trạng thái chia sẻ
Asynchronous programming with Tokio
Lập trình bất đồng bộ với Tokio
Declarative and procedural macros
Macro khai báo và macro thủ tục
Unit, integration, and doc tests
Kiểm thử đơn vị, tích hợp và tài liệu
Package management and popular crates
Quản lý gói và các crate phổ biến
Raw pointers, unsafe functions, and FFI
Con trỏ thô, hàm không an toàn và FFI