Module rustc_middle::mir::consts
source · Structs
- Evaluated Constants Represents the result of const evaluation via the
eval_to_allocation
query. 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.
Scalar
andSlice
are optimizations for array length computations, enum discriminants and the pattern matching logic.