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
Dynamic(Box<Fn(&'e [Value]) -> RuntimeResult<Value>>)
Executable at runtime.
Static
Inlined into instructions at compile time.
Fields of Static
arguments: Vec<Arg> | |
compile: Box<Fn(&mut Staging<'c, Value>) -> TemplateResult<CompiledExpression>> |