Crate rustc_type_ir[−][src]
Modules
Utilities for formatting and printing Strings.
Structs
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:
An floating-point (f32 or f64) type variable ID.
An integral (u32, i32, usize, etc.) type variable ID.
When hashing something that ends up affecting properties like symbol names, we want these symbol names to be calculated independently of other factors like what architecture you’re compiling from.
A type variable ID.
Flags that we track on types. These flags are propagated upwards through the type during type construction, so that we can quickly check whether the type has various kinds of types in it without recursing over the type itself.
Enums
A placeholder for a type that hasn’t been inferred yet.
Constants
Traits
A convenient helper for unification values which must be equal or
else an error occurs. For example, if you are unifying types in a
simple functional language, this may be appropriate, since (e.g.)
you can’t unify a type variable bound to int with one bound to
float (but you can unify two type variables both bound to
int).
Something that implements HashStable<CTX> can be hashed in a way that is
stable across multiple compilation sessions.
This trait is implemented by any type that can serve as a type
variable. We call such variables unification keys. For example,
this trait is implemented by IntVid, which represents integral
variables.
Functions
Returns a value uniquely identifying the enum variant in v.