Module hir_def::generics

source ·
Expand description

Many kinds of items or constructs can have generic parameters: functions, structs, impls, traits, etc. This module provides a common HIR for these generic parameters. See also the Generics type and the generics_of query in rustc.

Structs§

  • Data about a generic const parameter (to a function, struct, impl, …).
  • Data about the generic parameters of a function, struct, impl, etc.
  • Data about a generic lifetime parameter (to a function, struct, impl, …).
  • Data about a generic type parameter (to a function, struct, impl, …).

Enums§