Enum rustc_const_eval::check_match::Constructor [] [src]

pub enum Constructor {
    Single,
    Variant(DefId),
    ConstantValue(ConstVal),
    ConstantRange(ConstValConstVal),
    Slice(usize),
    SliceWithSubslice(usizeusize),
}
Unstable (rustc_private)

Variants

Single
Unstable (rustc_private)

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

Variant(DefId)
Unstable (rustc_private)

Enum variants.

ConstantValue(ConstVal)
Unstable (rustc_private)

Literal values.

ConstantRange(ConstValConstVal)
Unstable (rustc_private)

Ranges of literal values (2..5).

Slice(usize)
Unstable (rustc_private)

Array patterns of length n.

SliceWithSubslice(usizeusize)
Unstable (rustc_private)

Array patterns with a subslice.

Trait Implementations

Derived Implementations

impl PartialEq for Constructor
[src]

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

This method tests for self and other values to be equal, and is used by ==. Read more

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

This method tests for !=.

impl Clone for Constructor
[src]

fn clone(&self) -> Constructor

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more