Enum handlebars::template::Parameter [−][src]
pub enum Parameter { Name(String), Literal(Json), Subexpression(Subexpression), }
Variants
Name(String)
Literal(Json)
Subexpression(Subexpression)
Methods
impl Parameter
[src]
impl Parameter
pub fn expand_as_name<'reg: 'rc, 'rc>(
&'reg self,
registry: &'reg Registry,
ctx: &'rc Context,
rc: &mut RenderContext<'reg>
) -> Result<String, RenderError>
[src]
pub fn expand_as_name<'reg: 'rc, 'rc>(
&'reg self,
registry: &'reg Registry,
ctx: &'rc Context,
rc: &mut RenderContext<'reg>
) -> Result<String, RenderError>
pub fn expand<'reg: 'rc, 'rc>(
&'reg self,
registry: &'reg Registry,
ctx: &'rc Context,
rc: &mut RenderContext<'reg>
) -> Result<PathAndJson<'reg, 'rc>, RenderError>
[src]
pub fn expand<'reg: 'rc, 'rc>(
&'reg self,
registry: &'reg Registry,
ctx: &'rc Context,
rc: &mut RenderContext<'reg>
) -> Result<PathAndJson<'reg, 'rc>, RenderError>
impl Parameter
[src]
impl Parameter
pub fn into_name(self) -> Option<String>
[src]
pub fn into_name(self) -> Option<String>
pub fn parse(s: &str) -> Result<Parameter, TemplateError>
[src]
pub fn parse(s: &str) -> Result<Parameter, TemplateError>
Trait Implementations
impl PartialEq for Parameter
[src]
impl PartialEq for Parameter
fn eq(&self, other: &Parameter) -> bool
[src]
fn eq(&self, other: &Parameter) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Parameter) -> bool
[src]
fn ne(&self, other: &Parameter) -> bool
This method tests for !=
.
impl Clone for Parameter
[src]
impl Clone for Parameter
fn clone(&self) -> Parameter
[src]
fn clone(&self) -> Parameter
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Parameter
[src]
impl Debug for Parameter