Enum rustc_borrowck::AggregateKind [−][src]
pub(crate) enum AggregateKind<'tcx> {
Array(&'tcx TyS<'tcx>),
Tuple,
Adt(&'tcx AdtDef, VariantIdx, &'tcx List<GenericArg<'tcx>>, Option<UserTypeAnnotationIndex>, Option<usize>),
Closure(DefId, &'tcx List<GenericArg<'tcx>>),
Generator(DefId, &'tcx List<GenericArg<'tcx>>, Movability),
}Variants
Array(&'tcx TyS<'tcx>)
Tuple Fields
0: &'tcx TyS<'tcx>The type is of the element
Tuple
Adt(&'tcx AdtDef, VariantIdx, &'tcx List<GenericArg<'tcx>>, Option<UserTypeAnnotationIndex>, Option<usize>)
The second field is the variant index. It’s equal to 0 for struct
and union expressions. The fourth field is
active field number and is present only for union expressions
– e.g., for a union expression SomeUnion { c: .. }, the
active field index would identity the field c
Closure(DefId, &'tcx List<GenericArg<'tcx>>)
Generator(DefId, &'tcx List<GenericArg<'tcx>>, Movability)
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for AggregateKind<'tcx>
impl<'tcx> !Send for AggregateKind<'tcx>
impl<'tcx> !Sync for AggregateKind<'tcx>
impl<'tcx> Unpin for AggregateKind<'tcx>
impl<'tcx> !UnwindSafe for AggregateKind<'tcx>
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 48 bytes
Size for each variant:
Array: 15 bytesTuple: 0 bytesAdt: 47 bytesClosure: 23 bytesGenerator: 23 bytes