Insert a single line at `position`.
(&mut self, line: &[u8], position: usize)
| 64 | |
| 65 | /// Insert a single line at `position`. |
| 66 | pub fn insert(&mut self, line: &[u8], position: usize) { |
| 67 | let h = hash_line(line); |
| 68 | self.buckets.entry(h).or_default().push(position); |
| 69 | } |
| 70 | |
| 71 | /// Return all positions that hash to the same value as `line`. |
| 72 | /// |
no test coverage detected