Skip to main content

Resolve

Type Alias Resolve 

Source
pub type Resolve<'a, C> = &'a dyn Fn(&Value, &mut C, &mut dyn FnMut(&Value, &mut C) -> Result<f64, ExpressionError>) -> Result<f64, ExpressionError>;
Expand description

Resolve any node the kernel does not recognise as an operator or literal — a binding (tx.VarRef, a domain’s typed refersTo VarRef) or a domain leaf (Step, Time, Smooth…) — to a number. ctx is opaque caller state. recurse is handed back so a domain leaf containing sub-expressions can recurse into the kernel.