rust-closures-iterators

Installation
SKILL.md

Closures & Iterators

Based on The Rust Programming Language Ch. 13, Effective Rust, and the Iterator trait documentation.

When to Use This Skill

  • Writing closures with correct capture semantics
  • Understanding Fn, FnMut, FnOnce trait hierarchy
  • Chaining iterator adaptors for data transformation
  • Implementing Iterator for custom types
  • Using collect() effectively
  • Performance of iterator chains vs loops

Closures

Capture Modes

Installs
6
GitHub Stars
4
First Seen
Jun 9, 2026