Struct fgen::generator::Generator [−][src]
pub struct Generator { /* fields omitted */ }
Methods
impl Generator
[src]
impl Generator
pub fn new(project_path: &Path, template_path: &Path) -> Result<Generator>
[src]
pub fn new(project_path: &Path, template_path: &Path) -> Result<Generator>
pub fn get_template_path(&self) -> &Path
[src]
pub fn get_template_path(&self) -> &Path
pub fn get_project_path(&self) -> &Path
[src]
pub fn get_project_path(&self) -> &Path
pub fn generate_file(
&self,
context: &Context,
src_path: &Path,
dst_path: &Path
) -> Result<()>
[src]
pub fn generate_file(
&self,
context: &Context,
src_path: &Path,
dst_path: &Path
) -> Result<()>