pub struct IfBranchNode<'a> {
pub condition: Option<ExpressionNode<'a>>,
pub children: Vec<'a, TemplateChildNode<'a>>,
pub user_key: Option<PropNode<'a>>,
pub is_template_if: bool,
pub loc: SourceLocation,
}Expand description
If branch node (v-if, v-else-if, v-else)
Fields§
§condition: Option<ExpressionNode<'a>>§children: Vec<'a, TemplateChildNode<'a>>§user_key: Option<PropNode<'a>>§is_template_if: bool§loc: SourceLocationImplementations§
Source§impl<'a> IfBranchNode<'a>
impl<'a> IfBranchNode<'a>
pub fn new( allocator: &'a Bump, condition: Option<ExpressionNode<'a>>, loc: SourceLocation, ) -> IfBranchNode<'a>
pub fn node_type(&self) -> NodeType
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for IfBranchNode<'a>
impl<'a> !RefUnwindSafe for IfBranchNode<'a>
impl<'a> !Send for IfBranchNode<'a>
impl<'a> !Sync for IfBranchNode<'a>
impl<'a> Unpin for IfBranchNode<'a>
impl<'a> UnsafeUnpin for IfBranchNode<'a>
impl<'a> !UnwindSafe for IfBranchNode<'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