pub struct MirMatchArm {
pub pattern: MirPattern,
pub body: Spanned<MirExpr>,
}Expand description
One arm of a match. Pattern picks the variant; body is the
value produced when this arm fires.
Fields§
§pattern: MirPattern§body: Spanned<MirExpr>Trait Implementations§
Source§impl Clone for MirMatchArm
impl Clone for MirMatchArm
Source§fn clone(&self) -> MirMatchArm
fn clone(&self) -> MirMatchArm
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for MirMatchArm
impl RefUnwindSafe for MirMatchArm
impl Send for MirMatchArm
impl Sync for MirMatchArm
impl Unpin for MirMatchArm
impl UnsafeUnpin for MirMatchArm
impl UnwindSafe for MirMatchArm
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