Enum handlebars::Path
source · pub enum Path {
Relative((Vec<PathSeg>, String)),
Local((usize, String, String)),
}
Expand description
Represents the Json path in templates.
It can be either a local variable like @first
, ../@index
,
or a normal relative path like a/b/c
.
Variants§
Implementations§
Trait Implementations§
source§impl PartialEq<Path> for Path
impl PartialEq<Path> for Path
impl Eq for Path
impl StructuralEq for Path
impl StructuralPartialEq for Path
Auto Trait Implementations§
impl RefUnwindSafe for Path
impl Send for Path
impl Sync for Path
impl Unpin for Path
impl UnwindSafe for Path
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