pub enum TemplateSource {
File(PathBuf),
Text(String),
}Expand description
a template for render: the path of a template file, or its text
Variants§
Trait Implementations§
Source§impl Clone for TemplateSource
impl Clone for TemplateSource
Auto Trait Implementations§
impl Forget for TemplateSource
impl Freeze for TemplateSource
impl Move for TemplateSource
impl RefUnwindSafe for TemplateSource
impl Send for TemplateSource
impl Sync for TemplateSource
impl Unpin for TemplateSource
impl UnsafeUnpin for TemplateSource
impl UnwindSafe for TemplateSource
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