pub struct PureMatchArm {
pub pattern: PurePattern,
pub guard: Option<PureExpr>,
pub body: PureExpr,
}Expand description
Match arm.
Fields§
§pattern: PurePatternPattern.
guard: Option<PureExpr>Guard: if cond
body: PureExprBody.
Trait Implementations§
Source§impl Clone for PureMatchArm
impl Clone for PureMatchArm
Source§fn clone(&self) -> PureMatchArm
fn clone(&self) -> PureMatchArm
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 moreSource§impl Debug for PureMatchArm
impl Debug for PureMatchArm
Source§impl PartialEq for PureMatchArm
impl PartialEq for PureMatchArm
Source§fn eq(&self, other: &PureMatchArm) -> bool
fn eq(&self, other: &PureMatchArm) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl ToSyn for PureMatchArm
impl ToSyn for PureMatchArm
impl Eq for PureMatchArm
impl StructuralPartialEq for PureMatchArm
Auto Trait Implementations§
impl Freeze for PureMatchArm
impl RefUnwindSafe for PureMatchArm
impl Send for PureMatchArm
impl Sync for PureMatchArm
impl Unpin for PureMatchArm
impl UnsafeUnpin for PureMatchArm
impl UnwindSafe for PureMatchArm
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