pub fn current_instruction(&self) -> Instruction {
        let ProgramCounter { func, idx, .. } = self.program_counter.last().unwrap();
        let code = self.wasm.get_code(*func);
        match Self::find_instruction(&code.expr, idx) {
            Some(instruction) => instruction.clone(),
            None => panic!(
                "Could not find instruction\ncode: {:?}\nindex: {:?}",
                code.expr, idx
            ),
        }
    }
/// Get a reference to the current instruction. For debugging purposes only, and will be removed in the future.
Get a reference to the current instruction. For debugging purposes only, and will be removed in the future.
Get a reference to the current instruction . For debugging purposes only and will be removed in the future .
pub fn current_instruction(&self) -> Instruction {
        let ProgramCounter { func, idx, .. } = self.program_counter.last().unwrap();
        let code = self.wasm.get_code(*func);
        match Self::find_instruction(&code.expr, idx) {
            Some(instruction) => instruction.clone(),
            None => panic!(
                "Could not find instruction\ncode: {:?}\nindex: {:?}",
                code.expr, idx
            ),
        }
    }
pub fn current_instruction ( & self ) -> Instruction { let ProgramCounter { func , idx , .. } = self . program_counter . last ( ) . unwrap ( ) ; let code = self . wasm . get_code ( * func ) ; match Self :: find_instruction ( & code . expr , idx ) { Some ( instruction ) => instruction . clone ( ) , None => panic ! ( " \n \n " code expr idx ) , } }
Get a reference to the current instruction.
Get a reference to the current instruction .
&self
&self