Tutorial
4 posts

Rust Compiler Error 'cannot borrow as mutable'? Think of s.clear() as 'Tearing a Book'
Why does s.clear() cause a mutable borrow error? This article uses a ’library book’ analogy to help you thoroughly understand Rust’s borrowing rules and lifetime conflicts.
February 1, 2026 · 5 min · 868 words · RexAI

Stop Writing Some(...): The impl Into<Option<T>> Trick in Rust
Learn how to use Rust’s Into Trait with Option to let functions accept both raw values and Option types, eliminating tedious Some() wrapping.
January 29, 2026 · 3 min · 634 words · Dream Beast Programming

Rust Macros 2.0 Starter Guide: Build Code Like Lego
A panoramic Rust Macros 2.0 guide: unify macro namespaces, master the TokenStream pipeline and macro hygiene, and migrate from macro 1.0 to macro 2.0 metaprogramming with practical examples.
October 30, 2025 · 12 min · 2465 words · February 12, 2025 · Rexai Programming
Rust + Axum Async Microservice Guide: Job Queue, Retries, and Graceful Shutdown
Build a production-ready async microservice with Rust and Axum: job queue, background workers, exponential backoff retries, and graceful shutdown. Includes full project structure and Docker example.
August 17, 2025 · 4 min · 797 words · Rexai Programming