Latest Articles

Rust

Declarative Macros in Rust

A guide to understanding and writing declarative macros in Rust using the `macro_rules!` system, from basic definitions to repetition and designators.

Rust

Pattern Syntax in Rust

A detailed reference guide to the various syntaxes available for pattern matching in Rust, from literals and ranges to destructuring, guards, and `@` bindings.

Rust

Patterns and Matching in Rust

A comprehensive guide to patterns and pattern matching in Rust, covering everything from `match` statements and `if let` to destructuring, guards, and `@` bindings.

Rust

Procedural Macros in Rust

An in-depth guide to writing procedural macros in Rust, covering custom derive, attribute-like, and function-like macros using the `syn` and `quote` crates.

Rust

State Design Pattern in Rust

A guide to implementing the State design pattern in Rust, showing both a traditional OOP approach with trait objects and a more idiomatic Rust approach using enums.

Rust

Writing Unsafe Rust

An introduction to the `unsafe` keyword in Rust, what it allows you to do, and why it's necessary for certain low-level programming tasks.