pub enum CaseItem<'a> {
Default(Box<Stmt<'a>>),
Expr(Vec<Expr<'a>>, Box<Stmt<'a>>),
}Variants§
Trait Implementations§
Source§impl<'a> AcceptVisitor<'a> for CaseItem<'a>
impl<'a> AcceptVisitor<'a> for CaseItem<'a>
Source§impl<'a> ForEachChild<'a> for CaseItem<'a>
impl<'a> ForEachChild<'a> for CaseItem<'a>
Source§fn for_each_child(&'a self, each: &mut dyn FnMut(&'a dyn AnyNode<'a>))
fn for_each_child(&'a self, each: &mut dyn FnMut(&'a dyn AnyNode<'a>))
Apply a function to each child node.
Source§impl<'a> ForEachNode<'a> for CaseItem<'a>
impl<'a> ForEachNode<'a> for CaseItem<'a>
Source§fn for_each_node(&'a self, each: &mut dyn FnMut(&'a dyn AnyNode<'a>))
fn for_each_node(&'a self, each: &mut dyn FnMut(&'a dyn AnyNode<'a>))
Apply a function to this node.
Source§impl<'a> WalkVisitor<'a> for CaseItem<'a>
impl<'a> WalkVisitor<'a> for CaseItem<'a>
impl<'a> Eq for CaseItem<'a>
impl<'a> StructuralPartialEq for CaseItem<'a>
Auto Trait Implementations§
impl<'a> Freeze for CaseItem<'a>
impl<'a> !RefUnwindSafe for CaseItem<'a>
impl<'a> Send for CaseItem<'a>
impl<'a> Sync for CaseItem<'a>
impl<'a> Unpin for CaseItem<'a>
impl<'a> !UnwindSafe for CaseItem<'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