Struct rubble_templates::template::Template [−][src]
pub struct Template { pub raw_content: String, }
Expand description
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
Trait Implementations
type Item = TemplateSlice<'a>
type Item = TemplateSlice<'a>
Type of a single template part that can be compiled/evaluated/parsed. Read more
type ItemIterator = EvaluableMixedContentIterator<'a, Template>
type ItemIterator = EvaluableMixedContentIterator<'a, Template>
Iterator that can provide template parts that need to be compiled.
fn compile<C>(
&self,
content: C,
context: Context
) -> Result<String, CompilationError> where
C: EvaluableMixedContent<&'a Template, Item = Self::Item, IntoIter = Self::ItemIterator>,
[src]type Item = TemplateSlice<'a>
type Item = TemplateSlice<'a>
The type of the elements being iterated over.
type IntoIter = EvaluableMixedContentIterator<'a, Template>
type IntoIter = EvaluableMixedContentIterator<'a, Template>
Which kind of iterator are we turning this into?
Auto Trait Implementations
impl RefUnwindSafe for Template
impl UnwindSafe for Template