display_closure_as

Function display_closure_as 

Source
pub fn display_closure_as<F: Format>(
    f: F,
    c: impl Fn(&mut Formatter<'_>) -> Result<(), Error>,
) -> impl DisplayAs<F>
Expand description

Display the given closure as this format.

This is used internally in template handling.