pub struct TemplateEngine {
pub var_start: String,
pub var_end: String,
pub allow_missing: bool,
}
Expand description
A simple but flexible template engine
Fields§
§var_start: String
Variable delimiter start (default: “{”)
var_end: String
Variable delimiter end (default: “}”)
allow_missing: bool
Whether to allow missing variables (replaces with empty string)
Implementations§
Trait Implementations§
Source§impl Clone for TemplateEngine
impl Clone for TemplateEngine
Source§fn clone(&self) -> TemplateEngine
fn clone(&self) -> TemplateEngine
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TemplateEngine
impl Debug for TemplateEngine
Auto Trait Implementations§
impl Freeze for TemplateEngine
impl RefUnwindSafe for TemplateEngine
impl Send for TemplateEngine
impl Sync for TemplateEngine
impl Unpin for TemplateEngine
impl UnwindSafe for TemplateEngine
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