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

BoolSimplifiedType
CharSimplifiedType
IntSimplifiedType(IntTy)

Tuple Fields of IntSimplifiedType

0: IntTy
UintSimplifiedType(UintTy)

Tuple Fields of UintSimplifiedType

0: UintTy
FloatSimplifiedType(FloatTy)

Tuple Fields of FloatSimplifiedType

0: FloatTy
AdtSimplifiedType(D)

Tuple Fields of AdtSimplifiedType

0: D
StrSimplifiedType
ArraySimplifiedType
PtrSimplifiedType
NeverSimplifiedType
TupleSimplifiedType(usize)

Tuple Fields of TupleSimplifiedType

0: usize
MarkerTraitObjectSimplifiedType

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

TraitSimplifiedType(D)

Tuple Fields of TraitSimplifiedType

0: D
ClosureSimplifiedType(D)

Tuple Fields of ClosureSimplifiedType

0: D
GeneratorSimplifiedType(D)

Tuple Fields of GeneratorSimplifiedType

0: D
GeneratorWitnessSimplifiedType(usize)

Tuple Fields of GeneratorWitnessSimplifiedType

0: usize
OpaqueSimplifiedType(D)

Tuple Fields of OpaqueSimplifiedType

0: D
FunctionSimplifiedType(usize)

Tuple Fields of FunctionSimplifiedType

0: usize
ParameterSimplifiedType
ForeignSimplifiedType(DefId)

Tuple Fields of ForeignSimplifiedType

0: DefId

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 returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

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

This method tests for !=.

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

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.