function

Function function 

Source
pub fn function<T: Float>(f: Box<dyn Fn(T) -> T>) -> Setting<T>
Expand description

Creates a Setting that represents an arbitrary function.

The arbitrary function is provided as a boxed closure trait object. The closure will only be evaluated at points belonging to the band to which the Setting is applied.