pub struct Template { /* private fields */ }Implementations§
Source§impl Template
impl Template
pub fn new<S: AsRef<str>>(content: S) -> TemplerResult<Self>
pub fn from_file<P: AsRef<Path>>(path: P) -> TemplerResult<Self>
pub fn render(&self, vars: HashMap<String, TemplerVar>) -> TemplerResult<String>
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