Enum handlebars::template::TemplateElement
source · pub enum TemplateElement {
RawString(String),
HtmlExpression(Box<HelperTemplate>),
Expression(Box<HelperTemplate>),
HelperBlock(Box<HelperTemplate>),
DecoratorExpression(Box<DecoratorTemplate>),
DecoratorBlock(Box<DecoratorTemplate>),
PartialExpression(Box<DecoratorTemplate>),
PartialBlock(Box<DecoratorTemplate>),
Comment(String),
}
Variants§
RawString(String)
HtmlExpression(Box<HelperTemplate>)
Expression(Box<HelperTemplate>)
HelperBlock(Box<HelperTemplate>)
DecoratorExpression(Box<DecoratorTemplate>)
DecoratorBlock(Box<DecoratorTemplate>)
PartialExpression(Box<DecoratorTemplate>)
PartialBlock(Box<DecoratorTemplate>)
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, 'rc>(
&'reg self,
registry: &'reg Registry<'reg>,
ctx: &'rc Context,
rc: &mut RenderContext<'reg, 'rc>
) -> Result<(), RenderError>
source§impl PartialEq<TemplateElement> for TemplateElement
impl PartialEq<TemplateElement> for TemplateElement
source§fn eq(&self, other: &TemplateElement) -> bool
fn eq(&self, other: &TemplateElement) -> bool
source§impl Renderable for TemplateElement
impl Renderable for TemplateElement
source§fn render<'reg: 'rc, 'rc>(
&'reg self,
registry: &'reg Registry<'reg>,
ctx: &'rc Context,
rc: &mut RenderContext<'reg, 'rc>,
out: &mut dyn Output
) -> Result<(), RenderError>
fn render<'reg: 'rc, 'rc>(
&'reg self,
registry: &'reg Registry<'reg>,
ctx: &'rc Context,
rc: &mut RenderContext<'reg, 'rc>,
out: &mut dyn Output
) -> Result<(), RenderError>
render into RenderContext’s
writer
source§fn renders<'reg: 'rc, 'rc>(
&'reg self,
registry: &'reg Registry<'reg>,
ctx: &'rc Context,
rc: &mut RenderContext<'reg, 'rc>
) -> Result<String, RenderError>
fn renders<'reg: 'rc, 'rc>(
&'reg self,
registry: &'reg Registry<'reg>,
ctx: &'rc Context,
rc: &mut RenderContext<'reg, 'rc>
) -> Result<String, RenderError>
render into string