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.
Glossary: Software Design Patterns in Rust
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.