Expand description
Visitor for a run-time value with a given layout: Traverse enums, structs and other compound types until we arrive at the leaves, with custom handling for primitive types.
Re-exportsยง
use std::num::NonZero;๐use rustc_abi::FieldsShape;๐use rustc_abi::VariantIdx;๐use rustc_abi::Variants;๐use rustc_middle::mir::interpret::InterpResult;๐use rustc_middle::ty;๐use rustc_middle::ty::Ty;๐use tracing::trace;๐use super::InterpCx;๐use super::MPlaceTy;๐use super::Machine;๐use super::Projectable;๐use super::interp_ok;๐use super::throw_inval;๐
Traitsยง
- Value
Visitor - How to traverse a value and what to do when we are at the leaves.