pub type PatternMatchMapping = PatternMatchMapping<SourceRange>;

Aliased Type§

struct PatternMatchMapping {
    pub range: SourceRange,
    pub keys: Vec<Expr<SourceRange>>,
    pub patterns: Vec<Pattern<SourceRange>>,
    pub rest: Option<Identifier>,
}

Fields§

§range: SourceRange§keys: Vec<Expr<SourceRange>>§patterns: Vec<Pattern<SourceRange>>§rest: Option<Identifier>

Trait Implementations§

source§

impl Located for PatternMatchMapping

source§

impl LocatedMut for PatternMatchMapping

source§

fn range_mut(&mut self) -> &mut SourceRange

source§

impl<R: Clone> Clone for PatternMatchMapping<R>

source§

fn clone(&self) -> PatternMatchMapping<R>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<R: Debug> Debug for PatternMatchMapping<R>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T, U> Foldable<T, U> for PatternMatchMapping<T>

§

type Mapped = PatternMatchMapping<U>

source§

fn fold<F: Fold<T, TargetU = U> + ?Sized>( self, folder: &mut F ) -> Result<Self::Mapped, F::Error>

source§

impl<R> Node for PatternMatchMapping<R>

source§

const NAME: &'static str = "MatchMapping"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R: PartialEq> PartialEq for PatternMatchMapping<R>

source§

fn eq(&self, other: &PatternMatchMapping<R>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<R> StructuralPartialEq for PatternMatchMapping<R>