Remove a doc_id from the map. Note: this does NOT compact IDs — the u32 slot becomes a tombstone. The forward map entry is removed so `to_u32` returns None, but the reverse slot keeps the string for in-flight references. New assignments always use the next sequential ID (no reuse).
(&mut self, doc_id: &str)
| 67 | /// reverse slot keeps the string for in-flight references. New assignments |
| 68 | /// always use the next sequential ID (no reuse). |
| 69 | pub fn remove(&mut self, doc_id: &str) { |
| 70 | self.forward.remove(doc_id); |
| 71 | // Reverse entry stays as tombstone — do not shift IDs. |
| 72 | } |
| 73 | |
| 74 | /// Serialize the map to bytes for persistence. |
| 75 | /// |
no outgoing calls