pub enum TemplateElement {
RawString(String),
HtmlExpression(Box<HelperTemplate, Global>),
Expression(Box<HelperTemplate, Global>),
HelperBlock(Box<HelperTemplate, Global>),
DecoratorExpression(Box<DecoratorTemplate, Global>),
DecoratorBlock(Box<DecoratorTemplate, Global>),
PartialExpression(Box<DecoratorTemplate, Global>),
PartialBlock(Box<DecoratorTemplate, Global>),
Comment(String),
}
Variants§
RawString(String)
HtmlExpression(Box<HelperTemplate, Global>)
Expression(Box<HelperTemplate, Global>)
HelperBlock(Box<HelperTemplate, Global>)
DecoratorExpression(Box<DecoratorTemplate, Global>)
DecoratorBlock(Box<DecoratorTemplate, Global>)
PartialExpression(Box<DecoratorTemplate, Global>)
PartialBlock(Box<DecoratorTemplate, Global>)
Comment(String)
Trait Implementations§
source§impl Clone for TemplateElement
impl Clone for TemplateElement
source§fn clone(&self) -> TemplateElement
fn clone(&self) -> TemplateElement
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TemplateElement
impl Debug for TemplateElement
source§impl Evaluable for TemplateElement
impl Evaluable for TemplateElement
fn eval<'reg, 'rc>( &'reg self, registry: &'reg Registry<'reg>, ctx: &'rc Context, rc: &mut RenderContext<'reg, 'rc> ) -> Result<(), RenderError>where 'reg: 'rc,
source§impl PartialEq<TemplateElement> for TemplateElement
impl PartialEq<TemplateElement> for TemplateElement
source§fn eq(&self, other: &TemplateElement) -> bool
fn eq(&self, other: &TemplateElement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Renderable for TemplateElement
impl Renderable for TemplateElement
source§fn render<'reg, 'rc>(
&'reg self,
registry: &'reg Registry<'reg>,
ctx: &'rc Context,
rc: &mut RenderContext<'reg, 'rc>,
out: &mut dyn Output
) -> Result<(), RenderError>where
'reg: 'rc,
fn render<'reg, 'rc>( &'reg self, registry: &'reg Registry<'reg>, ctx: &'rc Context, rc: &mut RenderContext<'reg, 'rc>, out: &mut dyn Output ) -> Result<(), RenderError>where 'reg: 'rc,
render into RenderContext’s
writer
source§fn renders<'reg, 'rc>(
&'reg self,
registry: &'reg Registry<'reg>,
ctx: &'rc Context,
rc: &mut RenderContext<'reg, 'rc>
) -> Result<String, RenderError>where
'reg: 'rc,
fn renders<'reg, 'rc>( &'reg self, registry: &'reg Registry<'reg>, ctx: &'rc Context, rc: &mut RenderContext<'reg, 'rc> ) -> Result<String, RenderError>where 'reg: 'rc,
render into string
impl Eq for TemplateElement
impl StructuralEq for TemplateElement
impl StructuralPartialEq for TemplateElement
Auto Trait Implementations§
impl RefUnwindSafe for TemplateElement
impl Send for TemplateElement
impl Sync for TemplateElement
impl Unpin for TemplateElement
impl UnwindSafe for TemplateElement
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
§fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where A: Array<Item = T>,
Converts
self
into a collection.