Skip to main content

template

Function template 

Source
pub fn template<F: Fn(&mut TemplateContext<'_, '_>) -> Result<O>, O>(
    func: F,
) -> FnTemplate<F, O>
Expand description

Returns a “free floating” template for a given func. This prevents the need to define a custom type for one-off templates.