Struct MatchArm
pub struct MatchArm {
pub pattern: Value,
pub expr: Expr,
}Expand description
A single arm in a match expression.
Fields§
§pattern: ValueThe constant value pattern this arm matches against.
expr: ExprThe expression to evaluate when the pattern matches.
Trait Implementations§
impl StructuralPartialEq for MatchArm
Auto Trait Implementations§
impl Freeze for MatchArm
impl RefUnwindSafe for MatchArm
impl Send for MatchArm
impl Sync for MatchArm
impl Unpin 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