Skip to main content

render_fn

Function render_fn 

Source
pub fn render_fn<F>(f: F) -> RenderFn<F>
where F: Fn(&mut Formatter<'_>) -> Result,
Expand description

Creates a type whose Render impl is provided with the function f.