pub struct Template { /* private fields */ }
Expand description
Template
represents a compiled mustache file.
Implementations§
Source§impl Template
impl Template
Sourcepub fn render<W, T>(&self, wr: &mut W, data: &T) -> Result<()>
pub fn render<W, T>(&self, wr: &mut W, data: &T) -> Result<()>
Renders the template with the Encodable
data.
Sourcepub fn render_data<W: Write>(&self, wr: &mut W, data: &Data) -> Result<()>
pub fn render_data<W: Write>(&self, wr: &mut W, data: &Data) -> Result<()>
Renders the template with the Data
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Template
impl RefUnwindSafe for Template
impl Send for Template
impl Sync for Template
impl Unpin for Template
impl UnwindSafe for Template
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more