(&self, vm: &VirtualMachine, key: &K)
| 459 | } |
| 460 | |
| 461 | pub fn remove_if_exists<K>(&self, vm: &VirtualMachine, key: &K) -> PyResult<Option<T>> |
| 462 | where |
| 463 | K: DictKey + ?Sized, |
| 464 | { |
| 465 | self.remove_if(vm, key, |_| Ok(true)) |
| 466 | } |
| 467 | |
| 468 | /// pred should be VERY CAREFUL about what it does as it is called while |
| 469 | /// the dict's internal mutex is held |
no test coverage detected