Struct horrorshow::FnRenderer
[−]
[src]
pub struct FnRenderer<F> { /* fields omitted */ }
A template renderer. The html! {}
macro returns a FnRenderer
.
Methods
impl<F> FnRenderer<F> where
F: FnOnce(&mut TemplateBuffer),
[src]
F: FnOnce(&mut TemplateBuffer),
pub fn new(f: F) -> Self
[src]
pub fn with_capacity(expected_size: usize, f: F) -> Self
[src]
Trait Implementations
impl<F> RenderOnce for FnRenderer<F> where
F: FnOnce(&mut TemplateBuffer),
[src]
F: FnOnce(&mut TemplateBuffer),
fn render_once(self, tmpl: &mut TemplateBuffer)
[src]
Render this into a template buffer.
fn size_hint(&self) -> usize
[src]
Returns a (very) rough estimate of how many bytes this Render will use.
impl<F> RenderMut for FnRenderer<F> where
F: FnMut(&mut TemplateBuffer),
[src]
F: FnMut(&mut TemplateBuffer),
fn render_mut(&mut self, tmpl: &mut TemplateBuffer)
[src]
Render this into a template buffer.
impl<F> Render for FnRenderer<F> where
F: Fn(&mut TemplateBuffer),
[src]
F: Fn(&mut TemplateBuffer),
fn render(&self, tmpl: &mut TemplateBuffer)
[src]
Render this into a template buffer.
impl<F> Display for FnRenderer<F> where
FnRenderer<F>: Render,
[src]
FnRenderer<F>: Render,
Auto Trait Implementations
impl<F> Send for FnRenderer<F> where
F: Send,
F: Send,
impl<F> Sync for FnRenderer<F> where
F: Sync,
F: Sync,