Type Definition rustc_middle::ty::sty::TyKind

source ·
pub type TyKind<'tcx> = IrTyKind<TyCtxt<'tcx>>;

Trait Implementations

source

impl<'tcx> Article for TyKind<'tcx>

Get the article (“a” or “an”) to use with this type.

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

Size for each variant:

  • Bool: 0 bytes
  • Char: 0 bytes
  • Int: 1 byte
  • Uint: 1 byte
  • Float: 1 byte
  • Adt: 23 bytes
  • Foreign: 11 bytes
  • Str: 0 bytes
  • Array: 23 bytes
  • Slice: 15 bytes
  • RawPtr: 23 bytes
  • Ref: 23 bytes
  • FnDef: 23 bytes
  • FnPtr: 31 bytes
  • Dynamic: 23 bytes
  • Closure: 23 bytes
  • Generator: 23 bytes
  • GeneratorWitness: 23 bytes
  • Never: 0 bytes
  • Tuple: 15 bytes
  • Projection: 23 bytes
  • Opaque: 23 bytes
  • Param: 11 bytes
  • Bound: 15 bytes
  • Placeholder: 11 bytes
  • Infer: 11 bytes
  • Error: 0 bytes