Sebastian KaiserA personal engineering notebook

Follow a thread

rust

darkcoding.net

Traits: Rust's unifying concept

AI summary

Graham King explores how Rust traits bring interfaces, shared behavior, operator overloading, and generic constraints under one concept. Small examples show how the same mechanism connects seemingly separate language features.

Saved

In the notebook Processing JSON with Rust

The Iterator Is the State Machine

How Rust's Iterator trait supports lazy composition, and what a comparison with C++ ranges tells us about ownership checks and optimization.

Processing JSON with Rust

A Rust learning exercise with nested Olympic JSON: read country fields, count medals and rank results, with a worked example to follow.