Skip to main content

parameterized_call

Function parameterized_call 

Source
fn parameterized_call(
    context: &Context<'_>,
    name: &str,
    args: &[Box<Expr>],
) -> Result<Option<NativeNode>>
Expand description

Binds round, clamp, clamp_min or clamp_max whose parameters are not all constants, or returns None for any other call. Prometheus reads each parameter at every step, so each one is bound as the scalar node it compiles to; with constant parameters the call is a [MathOp].