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

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

Callable implementation.

Variants

Executable at runtime.

Inlined into instructions at compile time.

Fields of Static