Struct horrorshow::prelude::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]
impl<F> FnRenderer<F> where
F: FnOnce(&mut TemplateBuffer),
pub fn new(f: F) -> Self
[src]
pub fn new(f: F) -> Self
pub fn with_capacity(expected_size: usize, f: F) -> Self
[src]
pub fn with_capacity(expected_size: usize, f: F) -> Self
Trait Implementations
impl<F> RenderOnce for FnRenderer<F> where
F: FnOnce(&mut TemplateBuffer),
[src]
impl<F> RenderOnce for FnRenderer<F> where
F: FnOnce(&mut TemplateBuffer),
fn render_once(self, tmpl: &mut TemplateBuffer)
[src]
fn render_once(self, tmpl: &mut TemplateBuffer)
Render this into a template buffer.
fn size_hint(&self) -> usize
[src]
fn size_hint(&self) -> usize
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]
impl<F> RenderMut for FnRenderer<F> where
F: FnMut(&mut TemplateBuffer),
fn render_mut(&mut self, tmpl: &mut TemplateBuffer)
[src]
fn render_mut(&mut self, tmpl: &mut TemplateBuffer)
Render this into a template buffer.
impl<F> Render for FnRenderer<F> where
F: Fn(&mut TemplateBuffer),
[src]
impl<F> Render for FnRenderer<F> where
F: Fn(&mut TemplateBuffer),
fn render(&self, tmpl: &mut TemplateBuffer)
[src]
fn render(&self, tmpl: &mut TemplateBuffer)
Render this into a template buffer.
impl<F> Display for FnRenderer<F> where
FnRenderer<F>: Render,
[src]
impl<F> Display for FnRenderer<F> where
FnRenderer<F>: Render,
Auto Trait Implementations
impl<F> Send for FnRenderer<F> where
F: Send,
impl<F> Send for FnRenderer<F> where
F: Send,
impl<F> Sync for FnRenderer<F> where
F: Sync,
impl<F> Sync for FnRenderer<F> where
F: Sync,