(&self, k: &K, f: F)
| 654 | } |
| 655 | |
| 656 | pub fn with_value_mut<F, R>(&self, k: &K, f: F) -> Option<R> |
| 657 | where |
| 658 | F: Fn(&mut V) -> R, |
| 659 | { |
| 660 | let index = self.hash_key(k); |
| 661 | let mut ht = self.hash_table_list[index].lock().unwrap(); |
| 662 | ht.get_mut(k).map(f) |
| 663 | } |
| 664 | |
| 665 | pub fn map_m<F>(&self, f: F) |
| 666 | where |