Skip to main content

2 docs tagged with "variables"

View all tags

Variables and Mutability: The Building Blocks of Rust

Welcome to our second series on Rust! Now that you have a solid understanding of the Rust ecosystem and the structure of a Rust program, it's time to dive into the fundamental building blocks of the language. We'll start with one of the most basic concepts in any programming language: variables.

Working with Variables and Scope

After learning how to handle user input and parse strings, it's a good time to take a step back and understand a crucial concept that underpins Rust's safety guarantees: scope. Understanding how scope works is essential for writing correct and bug-free Rust code.