pub struct TemplateManager { /* private fields */ }Implementations§
Source§impl TemplateManager
impl TemplateManager
pub fn new() -> Result<Self>
pub fn create_template_from_current_dir(&self, name: &str) -> Result<()>
pub fn init_from_template( &self, template_name: &str, target_dir: &Path, ) -> Result<()>
pub fn list_templates(&self) -> Result<Vec<String>>
pub fn create_builtin_templates(&self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TemplateManager
impl RefUnwindSafe for TemplateManager
impl Send for TemplateManager
impl Sync for TemplateManager
impl Unpin for TemplateManager
impl UnsafeUnpin for TemplateManager
impl UnwindSafe for TemplateManager
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