Skip to main content

LocalRenderFn

Type Alias LocalRenderFn 

Source
pub type LocalRenderFn = Rc<RefCell<dyn FnMut(&Value) -> Result<String, RenderError>>>;
Expand description

A local (non-Send) render function for single-threaded use.

Unlike RenderFn, this uses Rc<RefCell> and allows FnMut closures, enabling mutable state in the render handler without Send + Sync overhead.

Aliased Typeยง

pub struct LocalRenderFn { /* private fields */ }