Browsing Category
Rust
22 posts
Rust is a multi-paradigm, general-purpose programming language that emphasizes performance, type safety, and concurrency. It is a relatively new language, but it has quickly gained popularity among developers due to its unique features and advantages.
Allocating Memory in Rust Programming Language: Stack, Heap, Box, Rc, and Arc Smart Pointers Guide
Memory management is the reason most people get into Rust in the first place, and it’s also the…
Defining Generic Functions and Structs in Rust Programming Language: Type Parameters and Code Reusability
When I first started writing Rust, I kept running into the same annoying problem: I’d write a function…
Defining and Invoking a Function in Rust Programming Language: Parameters, Return Values, and Signatures
Functions were the very first thing I learned in Rust, and honestly, they were also the first place…
Using Heterogeneous Data Structures in Rust Programming Language: Enums, Tuples, and Pattern Matching
One of the things that took me longest to fully appreciate about Rust is how it handles data…
Enumerating Cases in Rust Programming Language: Enums, Match Expressions, and Option/Result Types
When I first started writing Rust, I came from a background where enums were basically glorified integers. You’d…
Using Primitive Types in Rust Programming Language: Integers, Floats, Booleans, and Characters Explained
Every language has its “boring” chapter about basic types, and every language treats that chapter as if it…
Using Data Sequences in Rust Programming Language: Arrays, Vectors, and Tuples Complete Guide
One of the things I had to unlearn coming into Rust was treating every “list of things” the…
Controlling Execution Flow in Rust Programming Language: If-Else, Loops, and Pattern Matching Explained
Control flow is usually the part of a language I skim past, because if-statements and loops are if-statements…
Naming Objects in Rust Programming Language: Variables, Constants, Shadowing, and Naming Conventions
When I first started learning Rust, I assumed naming a variable would be the easiest part of the…
Doing Arithmetic Operations in Rust Programming Language: Operators, Type Casting, and Math Functions
Arithmetic feels like the most basic thing a programming language can do, but Rust taught me that “basic”…