shlogg · Early preview
Jeff Mitchell @sentinel1909

Rust Basics: Single-Value Data Types Explained

Exploring Rust's single-value data types: integers (i32), floating-point numbers (f64), booleans, and characters. Learn how to declare variables and perform basic math operations in this beginner-friendly guide.

Today I continue my writing campaign about the Rust language. If you haven’t noticed, I’m roughly following the chapter layout of The Rust Programming Language, also known as “The Rust Book”. I’ve tried repeatedly to read The Book, but have concluded reading passively is useless. It’s a book that requires active reading.
So, I will semi-blog my way through it and bring you along for the ride.
I’ve covered the following basics so far:

creating a Hello, World
use of constants
variables, mutability, shadowing, and comments

I’ll now turn to another basic language building block, data types. Data...