Enum handlebars::template::TemplateElement
source · pub enum TemplateElement {
RawString(String),
Expression(Parameter),
HTMLExpression(Parameter),
HelperExpression(Box<HelperTemplate>),
HelperBlock(Box<HelperTemplate>),
DirectiveExpression(DirectiveTemplate),
DirectiveBlock(DirectiveTemplate),
PartialExpression(DirectiveTemplate),
PartialBlock(DirectiveTemplate),
Comment(String),
}
Variants
RawString(String)
Expression(Parameter)
HTMLExpression(Parameter)
HelperExpression(Box<HelperTemplate>)
HelperBlock(Box<HelperTemplate>)
DirectiveExpression(DirectiveTemplate)
DirectiveBlock(DirectiveTemplate)
PartialExpression(DirectiveTemplate)
PartialBlock(DirectiveTemplate)
Comment(String)
Trait Implementations
sourceimpl Clone for TemplateElement
impl Clone for TemplateElement
sourcefn clone(&self) -> TemplateElement
fn clone(&self) -> TemplateElement
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TemplateElement
impl Debug for TemplateElement
sourceimpl Evaluable for TemplateElement
impl Evaluable for TemplateElement
fn eval<'reg: 'rc, 'rc>(
&'reg self,
registry: &'reg Registry,
ctx: &'rc Context,
rc: &mut RenderContext<'reg>
) -> Result<(), RenderError>
sourceimpl PartialEq<TemplateElement> for TemplateElement
impl PartialEq<TemplateElement> for TemplateElement
sourcefn eq(&self, other: &TemplateElement) -> bool
fn eq(&self, other: &TemplateElement) -> bool
sourceimpl Renderable for TemplateElement
impl Renderable for TemplateElement
sourcefn render<'reg: 'rc, 'rc>(
&'reg self,
registry: &'reg Registry,
ctx: &'rc Context,
rc: &mut RenderContext<'reg>,
out: &mut dyn Output
) -> Result<(), RenderError>
fn render<'reg: 'rc, 'rc>(
&'reg self,
registry: &'reg Registry,
ctx: &'rc Context,
rc: &mut RenderContext<'reg>,
out: &mut dyn Output
) -> Result<(), RenderError>
render into RenderContext’s
writer
sourcefn renders<'reg: 'rc, 'rc>(
&'reg self,
registry: &'reg Registry,
ctx: &'rc Context,
rc: &'rc mut RenderContext<'reg>
) -> Result<String, RenderError>
fn renders<'reg: 'rc, 'rc>(
&'reg self,
registry: &'reg Registry,
ctx: &'rc Context,
rc: &'rc mut RenderContext<'reg>
) -> Result<String, RenderError>
render into string
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more