Module rustc_const_eval::interpret::operand

source ·
Expand description

Functions concerning immediate values and operands, and reading from operands. All high-level functions to read from memory work on operands as sources.




  • An Immediate represents a single immediate self-contained Rust value.
  • Operand 🔒
    An Operand is the result of computing a mir::Operand. It can be immediate, or still in memory. The latter is an optimization, to delay reading that chunk of memory and to avoid having to store arbitrary-sized data here.


  • The Readable trait describes interpreter values that one can read from.