Skip to content

Glossary: Data Structures and Algorithms in Rust

Key function

A function or closure passed to sort_by_key that gives the value to sort by, such as a struct's total field.

Where the book teaches it

Related terms

ClosureStable sort