Struct rubble_templates_evaluators::simple::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 of a single template part that can be compiled/evaluated/parsed. Read more

type ItemIterator = EvaluableMixedContentIterator<'a, Template>

Iterator that can provide template parts that need to be compiled.

impl Debug for Template[src]

impl Eq for Template[src]

impl<'a> EvaluableMixedContent 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

impl RefUnwindSafe for Template

impl Send for Template

impl Sync for Template

impl Unpin for Template

impl UnwindSafe for Template

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.