Enum handlebars::template::Parameter
source · pub enum Parameter {
Name(String),
Path(Path),
Literal(Value),
Subexpression(Subexpression),
}
Variants§
Implementations§
source§impl Parameter
impl Parameter
pub fn expand_as_name<'reg: 'rc, 'rc>( &'rc self, registry: &'reg Registry<'reg>, ctx: &'rc Context, rc: &mut RenderContext<'reg, 'rc> ) -> Result<Cow<'rc, str>, RenderError>
pub fn expand<'reg: 'rc, 'rc>( &'rc self, registry: &'reg Registry<'reg>, ctx: &'rc Context, rc: &mut RenderContext<'reg, 'rc> ) -> Result<PathAndJson<'rc>, RenderError>
Trait Implementations§
source§impl PartialEq for Parameter
impl PartialEq for Parameter
impl Eq for Parameter
impl StructuralPartialEq for Parameter
Auto Trait Implementations§
impl Freeze for Parameter
impl RefUnwindSafe for Parameter
impl Send for Parameter
impl Sync for Parameter
impl Unpin for Parameter
impl UnwindSafe for Parameter
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more