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

type StrToCallbackNamespace<'a> = BTreeMap<&'static str, Box<dyn FnMut(Vec<f64>) -> f64 + 'a>>;

Type alias for BTreeMap<&'static str, 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 StrToCallbackNamespace<'_>[src]