Enum rustc_middle::ty::fast_reject::SimplifiedTypeGen [−][src]
pub enum SimplifiedTypeGen<D> where
D: Copy + Debug + Ord + Eq, {
Show 20 variants
BoolSimplifiedType,
CharSimplifiedType,
IntSimplifiedType(IntTy),
UintSimplifiedType(UintTy),
FloatSimplifiedType(FloatTy),
AdtSimplifiedType(D),
StrSimplifiedType,
ArraySimplifiedType,
PtrSimplifiedType,
NeverSimplifiedType,
TupleSimplifiedType(usize),
MarkerTraitObjectSimplifiedType,
TraitSimplifiedType(D),
ClosureSimplifiedType(D),
GeneratorSimplifiedType(D),
GeneratorWitnessSimplifiedType(usize),
OpaqueSimplifiedType(D),
FunctionSimplifiedType(usize),
ParameterSimplifiedType,
ForeignSimplifiedType(DefId),
}Expand description
See simplify_type
Note that we keep this type generic over the type of identifier it uses because we sometimes need to use SimplifiedTypeGen values as stable sorting keys (in which case we use a DefPathHash as id-type) but in the general case the non-stable but fast to construct DefId-version is the better choice.
Variants
IntSimplifiedType(IntTy)Tuple Fields of IntSimplifiedType
0: IntTyUintSimplifiedType(UintTy)Tuple Fields of UintSimplifiedType
0: UintTyFloatSimplifiedType(FloatTy)Tuple Fields of FloatSimplifiedType
0: FloatTyTupleSimplifiedType(usize)Tuple Fields of TupleSimplifiedType
0: usizeA trait object, all of whose components are markers
(e.g., dyn Send + Sync).
GeneratorWitnessSimplifiedType(usize)Tuple Fields of GeneratorWitnessSimplifiedType
0: usizeFunctionSimplifiedType(usize)Tuple Fields of FunctionSimplifiedType
0: usizeForeignSimplifiedType(DefId)Tuple Fields of ForeignSimplifiedType
0: DefIdImplementations
Trait Implementations
impl<'a, D> HashStable<StableHashingContext<'a>> for SimplifiedTypeGen<D> where
D: Copy + Debug + Ord + Eq + HashStable<StableHashingContext<'a>>,
impl<'a, D> HashStable<StableHashingContext<'a>> for SimplifiedTypeGen<D> where
D: Copy + Debug + Ord + Eq + HashStable<StableHashingContext<'a>>,
impl<D: PartialEq> PartialEq<SimplifiedTypeGen<D>> for SimplifiedTypeGen<D> where
D: Copy + Debug + Ord + Eq,
impl<D: PartialEq> PartialEq<SimplifiedTypeGen<D>> for SimplifiedTypeGen<D> where
D: Copy + Debug + Ord + Eq,
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
impl<D: PartialOrd> PartialOrd<SimplifiedTypeGen<D>> for SimplifiedTypeGen<D> where
D: Copy + Debug + Ord + Eq,
impl<D: PartialOrd> PartialOrd<SimplifiedTypeGen<D>> for SimplifiedTypeGen<D> where
D: Copy + Debug + Ord + Eq,
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl<D> RefUnwindSafe for SimplifiedTypeGen<D> where
D: RefUnwindSafe,
impl<D> Send for SimplifiedTypeGen<D> where
D: Send,
impl<D> Sync for SimplifiedTypeGen<D> where
D: Sync,
impl<D> Unpin for SimplifiedTypeGen<D> where
D: Unpin,
impl<D> UnwindSafe for SimplifiedTypeGen<D> where
D: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<Ctxt, T> DepNodeParams<Ctxt> for T where
Ctxt: DepContext,
T: for<'a> HashStable<StableHashingContext<'a>> + Debug,
impl<Ctxt, T> DepNodeParams<Ctxt> for T where
Ctxt: DepContext,
T: for<'a> HashStable<StableHashingContext<'a>> + Debug,
This method turns the parameters of a DepNodeConstructor into an opaque Fingerprint to be used in DepNode. Not all DepNodeParams support being turned into a Fingerprint (they don’t need to if the corresponding DepNode is anonymous). Read more
This method tries to recover the query key from the given DepNode,
something which is needed when forcing DepNodes during red-green
evaluation. The query system will only call this method if
fingerprint_style() is not FingerprintStyle::Opaque.
It is always valid to return None here, in which case incremental
compilation will treat the query as having changed instead of forcing it. Read more
Layout
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.