pub struct SwitchStmt {
pub expr: Expr,
pub cases: Box<[SwitchCase]>,
pub uses_alternative: bool,
}Fields§
§expr: Expr§cases: Box<[SwitchCase]>§uses_alternative: boolTrait Implementations§
Source§impl Clone for SwitchStmt
impl Clone for SwitchStmt
Source§fn clone(&self) -> SwitchStmt
fn clone(&self) -> SwitchStmt
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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