Skip to main content

InspectInstruction

Trait InspectInstruction 

Source
pub trait InspectInstruction {
    // Required method
    fn inspect<R>(&self, inspect: impl FnOnce(InstructionView<'_>) -> R) -> R;
}
Expand description

Inspect a resolved instruction without depending on its generated enum variant.

Required Methods§

Source

fn inspect<R>(&self, inspect: impl FnOnce(InstructionView<'_>) -> R) -> R

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§