pub struct HirSwitchStmt {
pub span: Span,
pub condition: HirExpr,
pub body: Box<HirStmt>,
}Expand description
One lowered switch.
Fields§
§span: SpanSource span.
condition: HirExprSwitch condition.
body: Box<HirStmt>Switch body.
Trait Implementations§
Source§impl Clone for HirSwitchStmt
impl Clone for HirSwitchStmt
Source§fn clone(&self) -> HirSwitchStmt
fn clone(&self) -> HirSwitchStmt
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 HirSwitchStmt
impl Debug for HirSwitchStmt
Source§impl<'de> Deserialize<'de> for HirSwitchStmt
impl<'de> Deserialize<'de> for HirSwitchStmt
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 HirSwitchStmt
impl PartialEq for HirSwitchStmt
Source§impl Serialize for HirSwitchStmt
impl Serialize for HirSwitchStmt
impl StructuralPartialEq for HirSwitchStmt
Auto Trait Implementations§
impl Freeze for HirSwitchStmt
impl RefUnwindSafe for HirSwitchStmt
impl Send for HirSwitchStmt
impl Sync for HirSwitchStmt
impl Unpin for HirSwitchStmt
impl UnsafeUnpin for HirSwitchStmt
impl UnwindSafe for HirSwitchStmt
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