pub struct MatchArm {
pub patterns: Vec<Pattern>,
pub rhs: Expr,
pub guard: Option<Expr>,
}Expand description
A match arm: pattern(s) → body.
Fields§
§patterns: Vec<Pattern>Patterns (one per scrutinee in multi-way match)
rhs: ExprRight-hand side
guard: Option<Expr>Guard condition (if any)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MatchArm
impl RefUnwindSafe for MatchArm
impl Send for MatchArm
impl Sync for MatchArm
impl Unpin for MatchArm
impl UnsafeUnpin for MatchArm
impl UnwindSafe for MatchArm
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