Enum handlebars::template::TemplateElement [−][src]
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)
Tuple Fields of RawString
0: String
HtmlExpression(Box<HelperTemplate>)
Tuple Fields of HtmlExpression
0: Box<HelperTemplate>
Expression(Box<HelperTemplate>)
Tuple Fields of Expression
0: Box<HelperTemplate>
HelperBlock(Box<HelperTemplate>)
Tuple Fields of HelperBlock
0: Box<HelperTemplate>
DecoratorExpression(Box<DecoratorTemplate>)
Tuple Fields of DecoratorExpression
0: Box<DecoratorTemplate>
DecoratorBlock(Box<DecoratorTemplate>)
Tuple Fields of DecoratorBlock
0: Box<DecoratorTemplate>
PartialExpression(Box<DecoratorTemplate>)
Tuple Fields of PartialExpression
0: Box<DecoratorTemplate>
PartialBlock(Box<DecoratorTemplate>)
Tuple Fields of PartialBlock
0: Box<DecoratorTemplate>
Comment(String)
Tuple Fields of Comment
0: String
Trait Implementations
fn eval<'reg: 'rc, 'rc>(
&'reg self,
registry: &'reg Registry<'reg>,
ctx: &'rc Context,
rc: &mut RenderContext<'reg, 'rc>
) -> Result<(), RenderError>
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
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
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
Mutably borrows from an owned value. Read more