pub struct SwitchStmt {
pub expr: Expr,
pub body: SwitchBody,
pub uses_alternative: bool,
}Expand description
A switch statement.
Fields§
§expr: ExprThe switched-on expression.
body: SwitchBodyThe braced case list.
uses_alternative: boolWhether the switch: ... endswitch; syntax is used.
Trait Implementations§
Source§impl Clone for SwitchStmt
impl Clone for SwitchStmt
Source§impl Debug for SwitchStmt
impl Debug for SwitchStmt
Auto Trait Implementations§
impl Freeze for SwitchStmt
impl RefUnwindSafe for SwitchStmt
impl Send for SwitchStmt
impl Sync for SwitchStmt
impl Unpin for SwitchStmt
impl UnsafeUnpin for SwitchStmt
impl UnwindSafe for SwitchStmt
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