[][src]Type Definition reikna::func::Function

type Function = Rc<dyn Fn(f64) -> f64>;

Type alias used to represent functions.

A Function is a Fn that takes a single f64, does something with it, and returns another f64.

Functions are stored in an Rc so they can be cloned() and subsequently consumed in other functions.