Enum rustc_query_impl::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

BoolSimplifiedType

CharSimplifiedType

IntSimplifiedType(IntTy)

Tuple Fields

0: IntTy

UintSimplifiedType(UintTy)

Tuple Fields

0: UintTy

FloatSimplifiedType(FloatTy)

Tuple Fields

AdtSimplifiedType(D)

Tuple Fields

0: D

StrSimplifiedType

ArraySimplifiedType

PtrSimplifiedType

NeverSimplifiedType

TupleSimplifiedType(usize)

Tuple Fields

0: usize

MarkerTraitObjectSimplifiedType

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

TraitSimplifiedType(D)

Tuple Fields

0: D

ClosureSimplifiedType(D)

Tuple Fields

0: D

GeneratorSimplifiedType(D)

Tuple Fields

0: D

GeneratorWitnessSimplifiedType(usize)

Tuple Fields

0: usize

OpaqueSimplifiedType(D)

Tuple Fields

0: D

FunctionSimplifiedType(usize)

Tuple Fields

0: usize

ParameterSimplifiedType

ForeignSimplifiedType(DefId)

Tuple Fields

0: DefId

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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.