Struct archetect_core::Archetect[][src]

pub struct Archetect { /* fields omitted */ }

Implementations

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]

pub fn render_string(
    &self,
    template: &str,
    context: &Context
) -> Result<String, RenderError>
[src]

pub fn render_contents<P: AsRef<Path>>(
    &self,
    path: P,
    context: &Context
) -> Result<String, RenderError>
[src]

pub fn render_directory<SRC: Into<PathBuf>, DEST: Into<PathBuf>>(
    &self,
    context: &Context,
    source: SRC,
    destination: DEST,
    rules_context: &mut RulesContext
) -> Result<(), RenderError>
[src]

pub fn write_contents<P: AsRef<Path>>(
    &self,
    destination: P,
    contents: &str
) -> Result<(), RenderError>
[src]

pub fn copy_contents<S: AsRef<Path>, D: AsRef<Path>>(
    &self,
    source: S,
    destination: D
) -> Result<(), RenderError>
[src]

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> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V