1. 1. Introduction
  2. 2. Who is using?
  3. Bắt đầu
  4. 3. Cài đặt Rust
  5. 4. Project đầu tiên
  6. Cơ bản
  7. 5. Variables
    1. 5.1. mut
    2. 5.2. uninitialized variable
  8. 6. Closure
  9. 7. Cargo
  10. 8. Packages và Crates
    1. 8.1. Package layout
    2. 8.2. Crate
    3. 8.3. use crate
      1. 8.3.1. use self, use super
      2. 8.3.2. pub use
    4. 8.4. Preludes
  11. 9. Ownership
  12. 10. Struct
  13. 11. Trait
    1. 11.1. Khai báo Trait
    2. 11.2. Implement Trait cho một Type
    3. 11.3. Default Implementations
    4. 11.4. Traits as Parameters
    5. 11.5. Trait Bound
    6. 11.6. Multiple Trait Bound
    7. 11.7. where Clauses
    8. 11.8. Returning Types that Implement Traits
    9. 11.9. Using Trait Bounds to Conditionally Implement Methods
    10. 11.10. Blanket implementations
    11. 11.11. Trait Inheritance
    12. 11.12. Supertraits
    13. 11.13. Auto Trait
    14. 11.14. Copy, Clone
    15. 11.15. String và &str
    16. 11.16. FromStr
    17. 11.17. Display
  14. 12. Enum
    1. 12.1. match Enum
    2. 12.2. Mang Variants ra ngoài scope của Enum
    3. 12.3. impl Enum
    4. 12.4. Option<T>
      1. 12.4.1. unwrap()
      2. 12.4.2. expect()
      3. 12.4.3. unwrap_or_default()
      4. 12.4.4. if let Some(x) = x
    5. 12.5. Result<T, E>
      1. 12.5.1. Convert Result sang Option
      2. 12.5.2. Toán tử ?
  15. 13. Generics
    1. 13.1. Generic Functions
    2. 13.2. Generic Struct
    3. 13.3. Generic Enum
    4. 13.4. Generic Implementation
    5. 13.5. Generic Trait
    6. 13.6. Bounds
    7. 13.7. where
  16. 14. Vec
    1. 14.1. Iter
    2. 14.2. Sử dụng Enum để chứa nhiều loại dữ liệu
  17. 15. Box
  18. 16. Cow
  19. 17. /// Viết code comment
    1. 17.1. Doc comments
  20. 18. Turbofish ::<>
  21. 19. macros!
    1. 19.1. Khác nhau giữa Macros và Functions
    2. 19.2. Macros mặc định
    3. 19.3. println!
    4. 19.4. format!
    5. 19.5. todo!
    6. 19.6. macro_rules!
  22. 20. match
    1. 20.1. Matching giá trị
    2. 20.2. Matching Named Variables
    3. 20.3. Matching Multiple
  23. 21. #[attributes]
  24. 22. Xử lý lỗi
    1. 22.1. panic
    2. 22.2. Option
    3. 22.3. Result
      1. 22.3.1. Result map
      2. 22.3.2. Result alias
    4. 22.4. Custom error
    5. 22.5. Boxing error
  25. 23. Viết Tests
    1. 23.1. Tổ chức Tests
      1. 23.1.1. Unit Tests
      2. 23.1.2. Integration Tests
      3. 23.1.3. Doc Tests
    2. 23.2. Xung đột biến môi trường
  26. 24. Viết Docs
    1. 24.1. Doc comments
    2. 24.2. Sử dụng README.md làm crate document
  27. 25. Smart Pointers
    1. 25.1. Box
    2. 25.2. Rc, Reference Counted
  28. Design patterns
  29. 26. Behavioural Patterns
    1. 26.1. Strategy Pattern
    2. 26.2. Command Pattern
  30. 27. Creational Patterns
    1. 27.1. Builder Pattern
  31. 28. Structural Patterns
    1. 28.1. Prefer Small Crates
  32. Crates hay dùng
  33. 29. tokio
  34. 30. actix-web
  35. 31. anyhow
  36. 32. serde
    1. 32.1. serde_json
  37. 33. clap
  38. 34. log
    1. 34.1. env_logger
  39. 35. config
  40. 36. async_trait
  41. 37. lazy_static
  42. 38. indoc
  43. 39. rayon
  44. Rust Idioms
  45. 40. Functional programming
  46. 41. Use borrowed types for arguments
  47. 42. Concatenating strings with format!
  48. 43. Constructor
  49. 44. The Default Trait
  50. 45. Finalisation in destructors
  51. 46. Temporary mutability
  52. Rust for Data Engineering
  53. 47. Using Rust for efficient data processing and analysis
  54. 48. First high-performance data pipelines in Rust
  55. 49. Building scalable data-driven applications using Rust
  56. 50. Rust as an alternative to Python for data engineering tasks

Rust Tiếng Việt

Matching giá trị