Enum rustc_trans::middle::check_match::ConstructorUnstable [-] [+] [src]

pub enum Constructor {
    Single,
    Variant(DefId),
    ConstantValue(const_val),
    ConstantRange(const_val, const_val),
    Slice(usize),
    SliceWithSubslice(usize, usize),
}

Variants

Single

The constructor of all patterns that don't vary by constructor, e.g. struct patterns and fixed-length arrays.

Variant

Enum variants.

ConstantValue

Literal values.

ConstantRange

Ranges of literal values (2..5).

Slice

Array patterns of length n.

SliceWithSubslice

Array patterns with a subslice.

Trait Implementations

Derived Implementations

impl PartialEq<Constructor> for Constructor

fn eq(&self, __arg_0: &Constructor) -> bool

fn ne(&self, __arg_0: &Constructor) -> bool

impl Clone for Constructor

fn clone(&self) -> Constructor

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