pub struct TemplateCollection { /* private fields */ }
Implementations§
Source§impl TemplateCollection
impl TemplateCollection
pub fn from_list( templates: impl IntoIterator<Item = Template>, ) -> Result<TemplateCollection, RenderError>
pub fn setup_handlebars( &self, handlebars: &mut Handlebars<'_>, ) -> Result<(), RenderError>
pub fn main_template_name(&self) -> &str
Trait Implementations§
Source§impl Clone for TemplateCollection
impl Clone for TemplateCollection
Source§fn clone(&self) -> TemplateCollection
fn clone(&self) -> TemplateCollection
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 TemplateCollection
impl Debug for TemplateCollection
Source§impl PartialEq for TemplateCollection
impl PartialEq for TemplateCollection
impl StructuralPartialEq for TemplateCollection
Auto Trait Implementations§
impl Freeze for TemplateCollection
impl RefUnwindSafe for TemplateCollection
impl Send for TemplateCollection
impl Sync for TemplateCollection
impl Unpin for TemplateCollection
impl UnwindSafe for TemplateCollection
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