pub struct SwitchCase {
pub value: Option<Expr>,
pub body: Box<[Stmt]>,
pub span: Span,
}Expand description
A case or default arm.
Fields§
§value: Option<Expr>Case value; None for default.
body: Box<[Stmt]>Statements of the case.
span: SpanSource span.
Trait Implementations§
Source§impl Clone for SwitchCase
impl Clone for SwitchCase
Source§impl Debug for SwitchCase
impl Debug for SwitchCase
Auto Trait Implementations§
impl Freeze for SwitchCase
impl RefUnwindSafe for SwitchCase
impl Send for SwitchCase
impl Sync for SwitchCase
impl Unpin for SwitchCase
impl UnsafeUnpin for SwitchCase
impl UnwindSafe for SwitchCase
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