pub fn emit(&mut self, what: impl EncodeInstruction) -> usize {
      let position = self.bytes.len();
      let mut bytes = [0; 4];
      what.encode_instruction(&mut bytes);
      self.bytes.extend_from_slice(&bytes);
      let end = self.bytes.len();
      let emitted = end - position;
      for _ in 0..emitted / 4 {
         self.locations.push(self.codegen_location);
      }
      position
   }
/// Pushes an encodable piece of data into the chunk. Returns where it's located.
Pushes an encodable piece of data into the chunk. Returns where it's located.
Pushes an encodable piece of data into the chunk . Returns where it ' s located .
pub fn emit(&mut self, what: impl EncodeInstruction) -> usize {
      let position = self.bytes.len();
      let mut bytes = [0; 4];
      what.encode_instruction(&mut bytes);
      self.bytes.extend_from_slice(&bytes);
      let end = self.bytes.len();
      let emitted = end - position;
      for _ in 0..emitted / 4 {
         self.locations.push(self.codegen_location);
      }
      position
   }
pub fn emit ( & mut self , what : impl EncodeInstruction ) -> usize { let position = self . bytes . len ( ) ; let mut bytes = [ 0 ; 4 ] ; what . encode_instruction ( & mut bytes ) ; self . bytes . extend_from_slice ( & bytes ) ; let end = self . bytes . len ( ) ; let emitted = end - position ; for _ in 0 .. emitted / 4 { self . locations . push ( self . codegen_location ) ; } position }
Pushes an encodable piece of data into the chunk.
Pushes an encodable piece of data into the chunk .
&mut self
what
impl EncodeInstruction