Skip to content

Glossary: Algorithms Beyond the Basics in Rust

Closure

Also written: closures

A small unnamed function written inline, like `|b| b.2` in `sort_by_key`, which here picks out a booking's end time.

Where the book teaches it

Related terms

Stable sort