Enum handlebars::template::TemplateElement [−][src]
pub enum TemplateElement { RawString(String), HTMLExpression(Parameter), Expression(Box<HelperTemplate>), HelperBlock(Box<HelperTemplate>), DecoratorExpression(Box<DecoratorTemplate>), DecoratorBlock(Box<DecoratorTemplate>), PartialExpression(Box<DecoratorTemplate>), PartialBlock(Box<DecoratorTemplate>), Comment(String), }
Variants
RawString(String)
HTMLExpression(Parameter)
Expression(Box<HelperTemplate>)
HelperBlock(Box<HelperTemplate>)
DecoratorExpression(Box<DecoratorTemplate>)
DecoratorBlock(Box<DecoratorTemplate>)
PartialExpression(Box<DecoratorTemplate>)
PartialBlock(Box<DecoratorTemplate>)
Comment(String)
Trait Implementations
impl Clone for TemplateElement
[src]
impl Clone for TemplateElement
[src]fn clone(&self) -> TemplateElement
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Evaluable for TemplateElement
[src]
impl Evaluable for TemplateElement
[src]fn eval<'reg: 'rc, 'rc>(
&'reg self,
registry: &'reg Registry<'reg>,
ctx: &'rc Context,
rc: &mut RenderContext<'reg, 'rc>
) -> Result<(), RenderError>
[src]
&'reg self,
registry: &'reg Registry<'reg>,
ctx: &'rc Context,
rc: &mut RenderContext<'reg, 'rc>
) -> Result<(), RenderError>
impl PartialEq<TemplateElement> for TemplateElement
[src]
impl PartialEq<TemplateElement> for TemplateElement
[src]fn eq(&self, other: &TemplateElement) -> bool
[src]
fn ne(&self, other: &TemplateElement) -> bool
[src]
impl Renderable for TemplateElement
[src]
impl Renderable for TemplateElement
[src]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>
[src]
&'reg self,
registry: &'reg Registry<'reg>,
ctx: &'rc Context,
rc: &mut RenderContext<'reg, 'rc>,
out: &mut dyn Output
) -> Result<(), RenderError>
fn renders<'reg: 'rc, 'rc>(
&'reg self,
registry: &'reg Registry<'reg>,
ctx: &'rc Context,
rc: &mut RenderContext<'reg, 'rc>
) -> Result<String, RenderError>
[src]
&'reg self,
registry: &'reg Registry<'reg>,
ctx: &'rc Context,
rc: &mut RenderContext<'reg, 'rc>
) -> Result<String, RenderError>