pub struct SwitchStmt {
pub span: Span,
pub condition: Expr,
pub body: Box<Stmt>,
}Expand description
One switch statement.
Fields§
§span: SpanSource span covering the whole statement.
condition: ExprCondition expression.
body: Box<Stmt>Switch body.
Trait 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 · 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
Source§impl<'de> Deserialize<'de> for SwitchStmt
impl<'de> Deserialize<'de> for SwitchStmt
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SwitchStmt
impl PartialEq for SwitchStmt
Source§impl Serialize for SwitchStmt
impl Serialize for SwitchStmt
impl StructuralPartialEq 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