Struct archetect_core::Archetect [−][src]
pub struct Archetect { /* fields omitted */ }
Implementations
impl Archetect
[src]
impl Archetect
[src]pub fn layout(&self) -> Rc<Box<dyn SystemLayout>>
[src]
pub fn offline(&self) -> bool
[src]
pub fn builder() -> ArchetectBuilder
[src]
pub fn build() -> Result<Archetect, ArchetectError>
[src]
pub fn template_engine(&self) -> &Tera
[src]
pub fn enable_switch<S: Into<String>>(&mut self, switch: S)
[src]
pub fn switches(&self) -> &HashSet<String>
[src]
pub fn load_archetype(
&self,
source: &str,
relative_to: Option<Source>
) -> Result<Archetype, ArchetypeError>
[src]
&self,
source: &str,
relative_to: Option<Source>
) -> Result<Archetype, ArchetypeError>
pub fn render_string(
&self,
template: &str,
context: &Context
) -> Result<String, RenderError>
[src]
&self,
template: &str,
context: &Context
) -> Result<String, RenderError>
pub fn render_contents<P: AsRef<Path>>(
&self,
path: P,
context: &Context
) -> Result<String, RenderError>
[src]
&self,
path: P,
context: &Context
) -> Result<String, RenderError>
pub fn render_directory<SRC: Into<PathBuf>, DEST: Into<PathBuf>>(
&self,
context: &Context,
source: SRC,
destination: DEST,
rules_context: &mut RulesContext
) -> Result<(), RenderError>
[src]
&self,
context: &Context,
source: SRC,
destination: DEST,
rules_context: &mut RulesContext
) -> Result<(), RenderError>
pub fn write_contents<P: AsRef<Path>>(
&self,
destination: P,
contents: &str
) -> Result<(), RenderError>
[src]
&self,
destination: P,
contents: &str
) -> Result<(), RenderError>
pub fn copy_contents<S: AsRef<Path>, D: AsRef<Path>>(
&self,
source: S,
destination: D
) -> Result<(), RenderError>
[src]
&self,
source: S,
destination: D
) -> Result<(), RenderError>
pub fn version(&self) -> Version
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Archetect
impl !Send for Archetect
impl !Sync for Archetect
impl Unpin for Archetect
impl !UnwindSafe for Archetect
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,