Enum handlebars::template::Parameter [−][src]
pub enum Parameter { Name(String), Path(Path), Literal(Json), Subexpression(Subexpression), }
Variants
Name(String)
Path(Path)
Literal(Json)
Subexpression(Subexpression)
Implementations
impl Parameter
[src]
impl Parameter
[src]pub fn expand_as_name<'reg: 'rc, 'rc>(
&'reg self,
registry: &'reg Registry<'reg>,
ctx: &'rc Context,
rc: &mut RenderContext<'reg, 'rc>
) -> Result<Cow<'reg, str>, RenderError>
[src]
&'reg self,
registry: &'reg Registry<'reg>,
ctx: &'rc Context,
rc: &mut RenderContext<'reg, 'rc>
) -> Result<Cow<'reg, str>, RenderError>
pub fn expand<'reg: 'rc, 'rc>(
&'reg self,
registry: &'reg Registry<'reg>,
ctx: &'rc Context,
rc: &mut RenderContext<'reg, 'rc>
) -> Result<PathAndJson<'reg, 'rc>, RenderError>
[src]
&'reg self,
registry: &'reg Registry<'reg>,
ctx: &'rc Context,
rc: &mut RenderContext<'reg, 'rc>
) -> Result<PathAndJson<'reg, 'rc>, RenderError>
impl Parameter
[src]
impl Parameter
[src]