pub trait HandleTrap {
// Required method
fn handle_trap(
&mut self,
trap_id: i64,
st: &mut StackMachineState,
) -> Result<TrapHandled, StackMachineError>;
}
Expand description
Trait for trap handlers implementing the Chain of Command pattern.