GenericTemplateBuildKeywordFn

Type Alias GenericTemplateBuildKeywordFn 

Source
pub type GenericTemplateBuildKeywordFn<'a, C> = Box<dyn Fn(BoxedTemplateProperty<'a, C>) -> TemplateParseResult<GenericTemplatePropertyKind<'a, C>> + 'a>;
Expand description

Function that translates keyword (or 0-ary method call node of the self type C.)

Because the GenericTemplateLanguage doesn’t provide a way to pass around global resources, the keyword function is allowed to capture resources.

Aliased Type§

pub struct GenericTemplateBuildKeywordFn<'a, C>(/* private fields */);