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
- Variables and Mutability: The Building Blocks of Rust
- How to declare variables with
letand control mutability withmut. Shadowing.
- How to declare variables with
- Fundamental Data Types: Scalar Types
- Integers, floating-point numbers, booleans, and characters.
- Fundamental Data Types: Compound Types
- Creating and accessing compound types (tuples and arrays).
- String Types:
&strandString- Understanding the difference between string slices and owned strings.
- Functions in Rust: The Core of Reusability
- Defining and calling functions. Function parameters and return values.
- Comments and Documentation: Writing Readable Code
- Writing readable and maintainable code. Generating documentation with
cargo doc.
- Writing readable and maintainable code. Generating documentation with
- Basic Operators: The Tools of Computation
- Arithmetic, comparison, logical, and bitwise operators.
- Next Series: Writing Your First Rust Console Applications