/rust-tips-and-tricks

A Collection of Rust Tips and Tricks

Primary LanguageRust

Table of Contents

Unwrapping Multiple Options in Rust

Source Code

Default Trait in Rust

Source Code

Flatten an Option in Rust

Source Code

Unwrap or Default in Rust

Source Code

Drop Trait in Rust

Source Code

HashMap Literals in Rust

Source Code

Parsing JSON in Rust

Source Code

Pattern Matching with Match in Rust

Source Code

Using Nested Paths in Rust

Source Code

Struct Update Syntax in Rust

Source Code

Field Init Shorthand in Rust

Source Code

Shadowing in Rust

Source Code