Struct guidon::CustomTemplate[][src]

pub struct CustomTemplate<'a> {
    pub dir_path: &'a Path,
    pub template_path: &'a Path,
}

Fields

dir_path: &'a Pathtemplate_path: &'a Path

Trait Implementations

impl<'a> Default for CustomTemplate<'a>[src]

impl<'a> TryNew<CustomTemplate<'a>> for Guidon<'a>[src]

fn try_new(src: CustomTemplate<'a>) -> Result<Self>[src]

Initialization from a directory and a custom template file

Arguments

  • dir_path: the base directory of templatized files
  • template_path: the path of the template file to apply. Must respect template.toml syntax

Auto Trait Implementations

impl<'a> RefUnwindSafe for CustomTemplate<'a>

impl<'a> Send for CustomTemplate<'a>

impl<'a> Sync for CustomTemplate<'a>

impl<'a> Unpin for CustomTemplate<'a>

impl<'a> UnwindSafe for CustomTemplate<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

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.

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