pub fn patch(&mut self, position: usize, instruction: impl EncodeInstruction) {
      let mut bytes = [0; 4];
      instruction.encode_instruction(&mut bytes);
      self.bytes[position..position + Opcode::INSTRUCTION_SIZE].copy_from_slice(&bytes);
   }
/// Patches the instruction at the given position.
Patches the instruction at the given position.
Patches the instruction at the given position .
pub fn patch(&mut self, position: usize, instruction: impl EncodeInstruction) {
      let mut bytes = [0; 4];
      instruction.encode_instruction(&mut bytes);
      self.bytes[position..position + Opcode::INSTRUCTION_SIZE].copy_from_slice(&bytes);
   }
pub fn patch ( & mut self , position : usize , instruction : impl EncodeInstruction ) { let mut bytes = [ 0 ; 4 ] ; instruction . encode_instruction ( & mut bytes ) ; self . bytes [ position .. position + Opcode :: INSTRUCTION_SIZE ] . copy_from_slice ( & bytes ) ; }
Patches the instruction at the given position.
Patches the instruction at the given position .
&mut self
position
usize
instruction
impl EncodeInstruction