pub struct MatchArm<P: Phase = Raw> {
pub pattern: MatchPattern,
pub body: Expr<P>,
pub span: Span,
}Expand description
One arm of a match expression: Impulsive(delta_v: dv) => expr
Fields§
§pattern: MatchPattern§body: Expr<P>§span: SpanTrait Implementations§
Source§impl FormatEquivalent for MatchArm
impl FormatEquivalent for MatchArm
Source§fn format_equivalent(&self, other: &Self) -> bool
fn format_equivalent(&self, other: &Self) -> bool
Returns
true if self and other are equivalent up to formatting.Auto Trait Implementations§
impl<P> Freeze for MatchArm<P>
impl<P> RefUnwindSafe for MatchArm<P>
impl<P> Send for MatchArm<P>
impl<P> Sync for MatchArm<P>
impl<P> Unpin for MatchArm<P>
impl<P> UnsafeUnpin for MatchArm<P>
impl<P> UnwindSafe for MatchArm<P>
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