Type Definition rustc_middle::ty::sty::TyKind
source · 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: 32 bytes
Size for each variant:
Bool
: 0 bytesChar
: 0 bytesInt
: 1 byteUint
: 1 byteFloat
: 1 byteAdt
: 23 bytesForeign
: 11 bytesStr
: 0 bytesArray
: 23 bytesSlice
: 15 bytesRawPtr
: 23 bytesRef
: 23 bytesFnDef
: 23 bytesFnPtr
: 31 bytesDynamic
: 23 bytesClosure
: 23 bytesGenerator
: 23 bytesGeneratorWitness
: 23 bytesNever
: 0 bytesTuple
: 15 bytesAlias
: 23 bytesParam
: 11 bytesBound
: 15 bytesPlaceholder
: 11 bytesInfer
: 11 bytesError
: 0 bytes