[][src]Type Definition fasteval::evalns::StringToCallbackNamespace

type StringToCallbackNamespace<'a> = BTreeMap<String, Box<dyn FnMut(Vec<f64>) -> f64 + 'a>>;

Type alias for BTreeMap<String, Box<dyn FnMut(Vec<f64>)->f64>>

This namespace type provides a very convenient way to register variables and custom functions. It is a bit slower than a pure callback, but it has isolation and composition advantages.

Trait Implementations

impl<'_> EvalNamespace for StringToCallbackNamespace<'_>[src]