Struct bitsy_lang::MatchArm
source · pub struct MatchArm(pub Pat, pub Arc<Expr>);
Expand description
A MatchArm
is a case in a match
expression.
In the expression:
match v {
@Valid(n) => n;
@Invalid => 0;
}
The two match arms are @Valid(n) => n;
and @Invalid => 0;
.
Tuple Fields§
§0: Pat
§1: Arc<Expr>
Trait Implementations§
Auto Trait Implementations§
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