Skip to content

Glossary: Coding Interviews in Rust

Function pointer

Also written: fn pointer, fn(&[i32], i32) -> usize

A function's name passed in as a value. The brute-force checker's `compare` takes the fast function this way and calls it on many inputs.

Where the book teaches it

Related terms

Brute-force checker