Skip to main content

Series 2: Understanding Basic Rust Syntax and Data Types

This series covers the fundamental building blocks of the Rust language, including variables, data types, and functions.

Articles in this Series

  1. Variables and Mutability: The Building Blocks of Rust
    • How to declare variables with let and control mutability with mut. Shadowing.
  2. Fundamental Data Types: Scalar Types
    • Integers, floating-point numbers, booleans, and characters.
  3. Fundamental Data Types: Compound Types
    • Creating and accessing compound types (tuples and arrays).
  4. String Types: &str and String
    • Understanding the difference between string slices and owned strings.
  5. Functions in Rust: The Core of Reusability
    • Defining and calling functions. Function parameters and return values.
  6. Comments and Documentation: Writing Readable Code
    • Writing readable and maintainable code. Generating documentation with cargo doc.
  7. Basic Operators: The Tools of Computation