(&mut self, from: usize)
| 93 | } |
| 94 | |
| 95 | fn fill_buffer(&mut self, from: usize) { |
| 96 | // Shift remaining buffer cursors left to the start of the slice. |
| 97 | self.buffer.copy_within(from..BUFFER_LEN, 0); |
| 98 | // Re-fill the buffer with new cursors. |
| 99 | let eof = eof_cursor(self.source_text.len()); |
| 100 | for i in BUFFER_LEN - from..BUFFER_LEN { |
| 101 | self.buffer[i] = self.cursor_iter.next().unwrap_or(eof); |
| 102 | } |
| 103 | self.buffer_index = 0; |
| 104 | } |
| 105 | |
| 106 | #[inline] |
| 107 | pub fn bump(&self) -> &'a Bump { |
no test coverage detected