/// Returns the current instruction, returning an error if
/// the program has overflowed its memory.
Returns the current instruction, returning an error if
the program has overflowed its memory.
Returns the current instruction returning an error if the program has overflowed its memory .
pub fn current_instruction(&self) -> Result<Instruction> {
        if self.pc >= self.memory.len() as u16 {
            return Err(ErrorKind::OutOfBounds.into());
        }
        Ok(self.instruction_at(self.pc))
    }
pub fn current_instruction ( & self ) -> Result < Instruction > { if self . pc >= self . memory . len ( ) as u16 { return Err ( ErrorKind :: OutOfBounds . into ( ) ) ; } Ok ( self . instruction_at ( self . pc ) ) }
Returns the current instruction, returning an error if
the program has overflowed its memory.
Returns the current instruction returning an error if the program has overflowed its memory .
&self