Type Alias rustc_middle::ty::sty::TyKind

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

Aliased Type§

enum TyKind<'tcx> {
    // some variants omitted
}

Variants§

Trait Implementations§

source§

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

source§

fn article(&self) -> &'static str

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
  • Pat: 23 bytes
  • Slice: 15 bytes
  • RawPtr: 15 bytes
  • Ref: 23 bytes
  • FnDef: 23 bytes
  • FnPtr: 31 bytes
  • Dynamic: 23 bytes
  • Closure: 23 bytes
  • CoroutineClosure: 23 bytes
  • Coroutine: 23 bytes
  • CoroutineWitness: 23 bytes
  • Never: 0 bytes
  • Tuple: 15 bytes
  • Alias: 23 bytes
  • Param: 11 bytes
  • Bound: 23 bytes
  • Placeholder: 23 bytes
  • Infer: 11 bytes
  • Error: 0 bytes