Type Definition rustc_middle::ty::fast_reject::SimplifiedType
source · pub type SimplifiedType = SimplifiedTypeGen<DefId>;Trait Implementations§
source§impl Key for SimplifiedType
impl Key for SimplifiedType
source§fn query_crate_is_local(&self) -> bool
fn query_crate_is_local(&self) -> bool
Given an instance of this key, what crate is it referring to?
This is used to find the provider. Read more
source§fn default_span(&self, _: TyCtxt<'_>) -> Span
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? Read moretype CacheSelector = DefaultCacheSelector<Self>
source§fn key_as_def_id(&self) -> Option<DefId>
fn key_as_def_id(&self) -> Option<DefId>
fn ty_adt_id(&self) -> Option<DefId>
source§impl<'a> ToStableHashKey<StableHashingContext<'a>> for SimplifiedType
impl<'a> ToStableHashKey<StableHashingContext<'a>> for SimplifiedType
type KeyType = Fingerprint
fn to_stable_hash_key(&self, hcx: &StableHashingContext<'a>) -> Fingerprint
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:
BoolSimplifiedType: 0 bytesCharSimplifiedType: 0 bytesIntSimplifiedType: 1 byteUintSimplifiedType: 1 byteFloatSimplifiedType: 1 byteAdtSimplifiedType: 11 bytesForeignSimplifiedType: 11 bytesStrSimplifiedType: 0 bytesArraySimplifiedType: 0 bytesSliceSimplifiedType: 0 bytesRefSimplifiedType: 1 bytePtrSimplifiedType: 1 byteNeverSimplifiedType: 0 bytesTupleSimplifiedType: 15 bytesMarkerTraitObjectSimplifiedType: 0 bytesTraitSimplifiedType: 11 bytesClosureSimplifiedType: 11 bytesGeneratorSimplifiedType: 11 bytesGeneratorWitnessSimplifiedType: 15 bytesFunctionSimplifiedType: 15 bytesPlaceholderSimplifiedType: 0 bytes