[][src]Struct nucleus::Template

pub struct Template {
    pub content: String,
    // some fields omitted
}

Template file

Fields

content: String

Methods

impl Template[src]

pub fn generate(&self, root: impl AsRef<Path>) -> Result<()>[src]

Generate template to the given root

Trait Implementations

impl Debug for Template[src]

impl PartialEq<Template> for Template[src]

fn eq(&self, other: &Template) -> bool[src]

To check for equality, This method will check:

  1. The file path of both templates.
  2. The "clean content" of both templates.

Note: Clean Content is a whitespace-removed content of the template, This is helpful in testing where the indentation can mess up the equality check.

Auto Trait Implementations

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, 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>,