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.
Glossary: Data Structures and Algorithms in Rust
A function or closure passed to sort_by_key that gives the value to sort by, such as a struct's total field.