pub enum Node {
Text(String),
Variable {
parts: Vec<Self>,
},
}Expand description
Represents a node in the parsed template AST.
Variants§
Text(String)
A literal text segment.
Variable
A variable segment, e.g., {{ ... }}.
The parts vector contains the segments inside the variable tag.
Trait Implementations§
impl Eq for Node
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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