Skip to content
Tagged articles

Zero-Cost Abstractions

2 articles · Page 1 of 1
21CTO
21CTO
Sep 18, 2026 · Fundamentals

15 Essential Rust Idioms for Writing Safe, Expressive Code

This article explores 15 idiomatic Rust patterns — including Newtype, smart constructors, builder pattern, RAII, composition over inheritance, trait-based strategy, extension traits, typestate, interior mutability, error propagation with ?, static vs dynamic dispatch, From/Into conversions, Option combinators, standard trait implementations, and zero-cost abstractions — that leverage Rust's ownership, type system, and compile-time guarantees to produce safer, more maintainable code.

Builder PatternInterior MutabilityNewtype Pattern
0 likes · 21 min read
15 Essential Rust Idioms for Writing Safe, Expressive Code
Architecture Development Notes
Architecture Development Notes
May 11, 2025 · Fundamentals

How Rust’s Ownership Model Eliminates Memory Bugs Before They Run

This article explores how Rust’s innovative ownership, borrowing, and type‑driven error handling move memory safety and concurrency checks from runtime to compile time, contrasting its zero‑cost abstractions with C++ and Go, and demonstrating practical code examples that prevent common bugs.

RustZero-Cost Abstractionserror handling
0 likes · 10 min read
How Rust’s Ownership Model Eliminates Memory Bugs Before They Run