pub enum Part {
Literal(Value),
Path(String),
Call {
name: String,
args: Vec<(String, Part)>,
},
}Expand description
One piece of a parsed template.
Variants§
Literal(Value)
A literal: text, a number, or a boolean (null is parsed as "").
Path(String)
A data binding, absolute or relative.
Call
A function call with named arguments.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Part
Auto Trait Implementations§
impl Forget for Part
impl Freeze for Part
impl Move for Part
impl RefUnwindSafe for Part
impl Send for Part
impl Sync for Part
impl Unpin for Part
impl UnsafeUnpin for Part
impl UnwindSafe for Part
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