pub struct MatchExpr {
pub subject: Box<Expression>,
pub arms: Vec<MatchArm>,
pub span: Span,
}Expand description
Match expression: match value { Pattern => result }
Fields§
§subject: Box<Expression>§arms: Vec<MatchArm>§span: SpanTrait Implementations§
impl StructuralPartialEq for MatchExpr
Auto Trait Implementations§
impl Freeze for MatchExpr
impl RefUnwindSafe for MatchExpr
impl Send for MatchExpr
impl Sync for MatchExpr
impl Unpin for MatchExpr
impl UnwindSafe for MatchExpr
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