Type Definition rustc_middle::mir::ProjectionKind

source ·
pub type ProjectionKind = ProjectionElem<(), (), ()>;
Expand description

Alias for projections as they appear in UserTypeProjection, where we need neither the V parameter for Index nor the T for Field.

Trait Implementations§

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: 24 bytes

Size for each variant:

  • Deref: 0 bytes
  • Field: 7 bytes
  • Index: 0 bytes
  • ConstantIndex: 23 bytes
  • Subslice: 23 bytes
  • Downcast: 11 bytes
  • OpaqueCast: 0 bytes