Module rustc_middle::mir::interpret::value
source · Structs
- Represents the result of const evaluation via the
eval_to_allocation
query.
Enums
- Represents a constant value in Rust.
Scalar
andSlice
are optimizations for array length computations, enum discriminants and the pattern matching logic. - A
Scalar
represents an immediate, primitive value existing outside of amemory::Allocation
. It is in many ways like a small chunk of anAllocation
, up to 16 bytes in size. Like a range of bytes in anAllocation
, aScalar
can either represent the raw bytes of a simple value or a pointer into anotherAllocation
Functions
- Gets the bytes of a constant slice value.