Module rustc_middle::mir::consts
source · Structs§
- Evaluated Constants Represents the result of const evaluation via the
eval_to_allocationquery. Not to be confused withConstAllocation, which directly refers to the underlying data! Here we indirect via anAllocId. - An unevaluated (potentially generic) constant used in MIR.
Enums§
- Constants
- Represents a constant value in Rust.
ScalarandSliceare optimizations for array length computations, enum discriminants and the pattern matching logic.