Getting Started With Rust: Option, Result, and the ? Operator
Three things you’ll see constantly in Rust are Option, Result, and the ? operator. They give Rust a clean way to deal with missing values and errors. Option Option represents a value that might exist. It has two possibilities: For example: Or if…
Getting Started With Rust: Enums
Enums in Rust let you define a type that can be one of several possible values. They’re simple, useful, and something you’ll see constantly in Rust. Creating an Enum Let’s say a player can move in four directions: We can then create a…
Getting Started With Rust: Structs
As your Rust programs get larger, you’ll need better ways to organize related data. That’s where structs come in. A struct lets you group multiple pieces of related data together into your own custom type. Creating a Struct Let’s say…
Getting Started With Rust Programming
Rust is a fast, modern programming language focused on performance, reliability, and memory safety. It can have a bit of a learning curve, but getting your first Rust program running is surprisingly simple. This guide will take you from installing Rust…
Rust vs C#: Which One Would I Actually Use?
I’ve been a C# developer for a long time. Rust came much later. And after spending time working with both languages, I’ve realized something: I really like Rust. I also really like C#. Yeah, I know. That’s not nearly as exciting as…