pub type LocalKey<'tcx> = SimplifiedType;

Aliased Type§

enum LocalKey<'tcx> {
Show 22 variants Bool, Char, Int(IntTy), Uint(UintTy), Float(FloatTy), Adt(DefId), Foreign(DefId), Str, Array, Slice, Ref(Mutability), Ptr(Mutability), Never, Tuple(usize), MarkerTraitObject, Trait(DefId), Closure(DefId), Generator(DefId), GeneratorWitness(usize), GeneratorWitnessMIR(DefId), Function(usize), Placeholder,
}

Variants§

§

Bool

§

Char

§

Int(IntTy)

§

Uint(UintTy)

§

Float(FloatTy)

§

Adt(DefId)

§

Foreign(DefId)

§

Str

§

Array

§

Slice

§

Ref(Mutability)

§

Ptr(Mutability)

§

Never

§

Tuple(usize)

§

MarkerTraitObject

A trait object, all of whose components are markers (e.g., dyn Send + Sync).

§

Trait(DefId)

§

Closure(DefId)

§

Generator(DefId)

§

GeneratorWitness(usize)

§

GeneratorWitnessMIR(DefId)

§

Function(usize)

§

Placeholder

Implementations§

Trait Implementations§

source§

impl Clone for SimplifiedType

source§

fn clone(&self) -> SimplifiedType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SimplifiedType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'tcx, __D: TyDecoder<I = TyCtxt<'tcx>>> Decodable<__D> for SimplifiedType

source§

fn decode(__decoder: &mut __D) -> Self

source§

impl<'tcx, __E: TyEncoder<I = TyCtxt<'tcx>>> Encodable<__E> for SimplifiedType

source§

fn encode(&self, __encoder: &mut __E)

source§

impl EraseType for SimplifiedType

§

type Result = [u8; 16]

source§

impl Hash for SimplifiedType

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'__ctx> HashStable<StableHashingContext<'__ctx>> for SimplifiedType

source§

fn hash_stable( &self, __hcx: &mut StableHashingContext<'__ctx>, __hasher: &mut StableHasher )

source§

impl Key for SimplifiedType

§

type CacheSelector = DefaultCacheSelector<SimplifiedType>

source§

fn default_span(&self, _: TyCtxt<'_>) -> Span

In the event that a cycle occurs, if no explicit span has been given for a query with key self, what span should we use?
source§

fn key_as_def_id(&self) -> Option<DefId>

If the key is a DefId or DefId–equivalent, return that DefId. Otherwise, return None.
source§

fn ty_adt_id(&self) -> Option<DefId>

source§

impl ParameterizedOverTcx for SimplifiedType

§

type Value<'tcx> = SimplifiedType

source§

impl PartialEq<SimplifiedType> for SimplifiedType

source§

fn eq(&self, other: &SimplifiedType) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'a> ToStableHashKey<StableHashingContext<'a>> for SimplifiedType

source§

impl Copy for SimplifiedType

source§

impl Eq for SimplifiedType

source§

impl StructuralEq for SimplifiedType

source§

impl StructuralPartialEq for SimplifiedType

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

Size for each variant:

  • Bool: 0 bytes
  • Char: 0 bytes
  • Int: 1 byte
  • Uint: 1 byte
  • Float: 1 byte
  • Adt: 11 bytes
  • Foreign: 11 bytes
  • Str: 0 bytes
  • Array: 0 bytes
  • Slice: 0 bytes
  • Ref: 1 byte
  • Ptr: 1 byte
  • Never: 0 bytes
  • Tuple: 15 bytes
  • MarkerTraitObject: 0 bytes
  • Trait: 11 bytes
  • Closure: 11 bytes
  • Generator: 11 bytes
  • GeneratorWitness: 15 bytes
  • GeneratorWitnessMIR: 11 bytes
  • Function: 15 bytes
  • Placeholder: 0 bytes