Skip to content

Glossary: Software Design Patterns in Rust

Function pointer

Also written: fn pointer, fn(f64) -> f64

A value of type `fn(...) -> ...` that refers to a plain function. It can't capture values, unlike a closure.

Where the book teaches it

Related terms

ClosureStrategy