Enum handlebars::template::Parameter [−][src]
pub enum Parameter {
Name(String),
Path(Path),
Literal(Json),
Subexpression(Subexpression),
}
Variants
Name(String)
Tuple Fields of Name
0: String
Path(Path)
Tuple Fields of Path
0: Path
Literal(Json)
Tuple Fields of Literal
0: Json
Subexpression(Subexpression)
Tuple Fields of Subexpression
Implementations
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>
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>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Parameter
impl UnwindSafe for Parameter
Blanket Implementations
Mutably borrows from an owned value. Read more