pub enum TemplateChildNode<'a> {
Element(Box<'a, ElementNode<'a>>),
Text(Box<'a, TextNode>),
Comment(Box<'a, CommentNode>),
Interpolation(Box<'a, InterpolationNode<'a>>),
If(Box<'a, IfNode<'a>>),
IfBranch(Box<'a, IfBranchNode<'a>>),
For(Box<'a, ForNode<'a>>),
TextCall(Box<'a, TextCallNode<'a>>),
CompoundExpression(Box<'a, CompoundExpressionNode<'a>>),
Hoisted(usize),
}Expand description
All template child node types
Variants§
Element(Box<'a, ElementNode<'a>>)
Text(Box<'a, TextNode>)
Comment(Box<'a, CommentNode>)
Interpolation(Box<'a, InterpolationNode<'a>>)
If(Box<'a, IfNode<'a>>)
IfBranch(Box<'a, IfBranchNode<'a>>)
For(Box<'a, ForNode<'a>>)
TextCall(Box<'a, TextCallNode<'a>>)
CompoundExpression(Box<'a, CompoundExpressionNode<'a>>)
Hoisted(usize)
Reference to a hoisted node (index into root.hoists array)
Implementations§
Source§impl<'a> TemplateChildNode<'a>
impl<'a> TemplateChildNode<'a>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TemplateChildNode<'a>
impl<'a> !RefUnwindSafe for TemplateChildNode<'a>
impl<'a> !Send for TemplateChildNode<'a>
impl<'a> !Sync for TemplateChildNode<'a>
impl<'a> Unpin for TemplateChildNode<'a>
impl<'a> UnsafeUnpin for TemplateChildNode<'a>
impl<'a> !UnwindSafe for TemplateChildNode<'a>
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