Module rustc_middle::ty::generic_args
source · Structs§
- Similar to
super::Binderexcept that it tracks early bound generics, i.e.struct Foo<T>(T)needsTinstantiated immediately. This type primarily exists to avoid forgetting to callinstantiate. - An entity in the Rust type system, which can be one of several kinds (types, lifetimes, and consts). To reduce memory usage, a
GenericArgis an interned pointer, with the lowest 2 bits being reserved for a tag to indicate the type (Ty,Region, orConst) it points to. - Stores the user-given args to reach some fully qualified path (e.g.,
<T>::Itemor<T as Trait>::Item). - Specifies the user-given self type. In the case of a path that refers to a member in an inherent impl, this self type is sometimes needed to constrain the type parameters on the impl. For example, in this code:
Enums§
Constants§
Type Aliases§
- List of generic arguments that are gonna be used to replace generic parameters.