#[non_exhaustive]pub struct MatchExpr {
pub subject: Box<Expr>,
pub arms: Box<[MatchArm]>,
/* private fields */
}Expand description
A match expression.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.subject: Box<Expr>Matched expression.
arms: Box<[MatchArm]>Match arms.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MatchExpr
impl RefUnwindSafe for MatchExpr
impl Send for MatchExpr
impl Sync for MatchExpr
impl Unpin for MatchExpr
impl UnsafeUnpin 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