Skip to main content

Module visitor

Module visitor 

Source
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ยง

ValueVisitor
How to traverse a value and what to do when we are at the leaves.