pub enum SwitchArm {
Case {
value: Expr,
body: Vec<Stmt>,
span: Span,
},
Default {
body: Vec<Stmt>,
span: Span,
},
}Expand description
One source-ordered arm in a switch statement.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SwitchArm
impl RefUnwindSafe for SwitchArm
impl Send for SwitchArm
impl Sync for SwitchArm
impl Unpin for SwitchArm
impl UnsafeUnpin for SwitchArm
impl UnwindSafe for SwitchArm
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