pub enum SimplifiedTypeGen<D> where
    D: Copy + Debug + Eq
{
Show 22 variants BoolSimplifiedType, CharSimplifiedType, IntSimplifiedType(IntTy), UintSimplifiedType(UintTy), FloatSimplifiedType(FloatTy), AdtSimplifiedType(D), ForeignSimplifiedType(D), StrSimplifiedType, ArraySimplifiedType, SliceSimplifiedType, RefSimplifiedType(Mutability), PtrSimplifiedType(Mutability), NeverSimplifiedType, TupleSimplifiedType(usize), MarkerTraitObjectSimplifiedType, TraitSimplifiedType(D), ClosureSimplifiedType(D), GeneratorSimplifiedType(D), GeneratorWitnessSimplifiedType(usize), OpaqueSimplifiedType(D), FunctionSimplifiedType(usize), PlaceholderSimplifiedType,
}
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)

UintSimplifiedType(UintTy)

FloatSimplifiedType(FloatTy)

AdtSimplifiedType(D)

ForeignSimplifiedType(D)

StrSimplifiedType

ArraySimplifiedType

SliceSimplifiedType

RefSimplifiedType(Mutability)

PtrSimplifiedType(Mutability)

NeverSimplifiedType

TupleSimplifiedType(usize)

MarkerTraitObjectSimplifiedType

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

TraitSimplifiedType(D)

ClosureSimplifiedType(D)

GeneratorSimplifiedType(D)

GeneratorWitnessSimplifiedType(usize)

OpaqueSimplifiedType(D)

FunctionSimplifiedType(usize)

PlaceholderSimplifiedType

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

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

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.