Soft-delete a vector by global ID.
(&mut self, id: u32)
| 76 | |
| 77 | /// Soft-delete a vector by global ID. |
| 78 | pub fn delete(&mut self, id: u32) -> bool { |
| 79 | let ok = self.delete_inner(id); |
| 80 | if ok && let Some(s) = self.surrogate_map.remove(&id) { |
| 81 | self.surrogate_to_local.remove(&s); |
| 82 | } |
| 83 | ok |
| 84 | } |
| 85 | |
| 86 | pub(super) fn delete_inner(&mut self, id: u32) -> bool { |
| 87 | if id >= self.growing_base_id { |
no test coverage detected