Enum rustc::mir::AggregateKind [] [src]

pub enum AggregateKind<'tcx> {
    Array(Ty<'tcx>),
    Tuple,
    Adt(&'tcx AdtDefusize, &'tcx Substs<'tcx>, Option<usize>),
    Closure(DefIdClosureSubsts<'tcx>),
}
🔬 This is a nightly-only experimental API. (rustc_private)

Variants

🔬 This is a nightly-only experimental API. (rustc_private)

The type is of the element

🔬 This is a nightly-only experimental API. (rustc_private)
🔬 This is a nightly-only experimental API. (rustc_private)

The second field is variant number (discriminant), it's equal to 0 for struct and union expressions. The fourth field is active field number and is present only for union expressions.

🔬 This is a nightly-only experimental API. (rustc_private)

Trait Implementations

impl<'tcx> Clone for AggregateKind<'tcx>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'tcx> Debug for AggregateKind<'tcx>
[src]

Formats the value using the given formatter.

impl<'tcx> PartialEq for AggregateKind<'tcx>
[src]

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

This method tests for !=.

impl<'tcx> Eq for AggregateKind<'tcx>
[src]

impl<'tcx> Encodable for AggregateKind<'tcx>
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

deprecated in favor of rustc-serialize on crates.io

impl<'tcx> Decodable for AggregateKind<'tcx>
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

deprecated in favor of rustc-serialize on crates.io