Skip to main content

Module ty

Module ty 

Source
Expand description

A simplified version of rust types.

Modules§

subst 🔒

Structs§

AdtDef
AdtDefData
AliasTy
Binder
BoundRegion
Clause
ClosureArgs
ClosureArgsParts
Const
CoroutineArgs
CoroutineArgsParts
EarlyBinder
ExistentialProjection
ExistentialTraitRef
FieldDef
FnSig
GenericParamDef
GenericPredicates
Generics
OutlivesPredicate
ProjectionPredicate
TraitPredicate
TraitRef
Ty
TyS 🔒
UnevaluatedConst
VariantDef
BoundVar
ConstVid
A const variable ID.
DebruijnIndex
A De Bruijn index is a standard means of representing regions (and perhaps later types) in a higher-ranked setting. In particular, imagine a type like this:
EarlyParamRegion
FieldIdx
The source-order index of a field in a variant.
LateParamRegion
The parameter representation of late-bound function parameters, “some region at least as big as the scope fr.scope”.
ParamTy
RegionVid
A region variable ID.
ScalarInt
The raw bytes of a simple value.
VariantIdx
The source-order index of a variant in a type.

Enums§

AliasKind
BoundRegionKind
BoundVariableKind
ClauseKind
ConstKind
ExistentialPredicate
GenericArg
GenericParamDefKind
Region
TyKind
ValTree
FloatTy
InferConst
An inference variable for a const, for use in const generics.
IntTy
LateParamRegionKind
When liberating bound regions, we map their [ty::BoundRegionKind] to this as we need to track the index of anonymous regions. We otherwise end up liberating multiple bound regions to the same late-bound region.
Mutability
UintTy

Constants§

FIRST_VARIANT
Equivalent to VariantIdx(0).

Traits§

GenericArgsExt

Functions§

region_to_string

Type Aliases§

GenericArgs
List
PolyExistentialPredicate
PolyFnSig
PolyTraitRef
RegionOutlivesPredicate
TypeOutlivesPredicate