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

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.