Enum twig::function::Callable [] [src]

pub enum Callable {
    Dynamic(Box<for<'e> Fn(&'e [Value]) -> RuntimeResult<Value>>),
    Static {
        arguments: Vec<Arg>,
        compile: Box<for<'c> Fn(&mut Staging<'c, Value>) -> TemplateResult<CompiledExpression>>,
    },
}

Callable implementation.

Variants

Dynamic

Executable at runtime.

Static

Inlined into instructions at compile time.

Fields

arguments
compile