Skip to main content

from_fn_mut

Function from_fn_mut 

Source
pub fn from_fn_mut<F>(f: F) -> LocalRenderFn
where F: FnMut(&Value) -> Result<String, RenderError> + 'static,
Expand description

Creates a local render function from a FnMut closure.

Use this when the render handler needs mutable state and doesn’t need to be thread-safe.