Struct rubble_rs::template::Template[][src]

pub struct Template {
    pub raw_content: String,
}

A simple template that represents a source text.

This template is a raw template that can be reused with different variables or Evaluators. It contains a raw source that can be parsed.

Fields

raw_content: String

Implementations

impl Template[src]

pub fn read_from(path: &Path) -> Result<Template, Error>[src]

pub fn from(raw_content: String) -> Template[src]

Trait Implementations

impl<'a, E> Compiler<&'a Template> for TemplateCompiler<E> where
    E: Evaluator
[src]

type Item = TemplateSlice<'a>

type ItemIterator = EvaluableMixedContentIterator<'a, Template>

impl Debug for Template[src]

impl Eq for Template[src]

impl<'a> EvaluableMixedContent<&'a Template> for &'a Template[src]

impl<'a> IntoIterator for &'a Template[src]

type Item = TemplateSlice<'a>

The type of the elements being iterated over.

type IntoIter = EvaluableMixedContentIterator<'a, Template>

Which kind of iterator are we turning this into?

impl PartialEq<Template> for Template[src]

impl StructuralEq for Template[src]

impl StructuralPartialEq for Template[src]

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.