(&mut self, old_path: &Rc<Path>, new_path: &Rc<Path>)
| 43 | } |
| 44 | |
| 45 | pub fn duplicate(&mut self, old_path: &Rc<Path>, new_path: &Rc<Path>) { |
| 46 | if let Some(value) = self.value_map.get(old_path).copied() { |
| 47 | self.value_map.insert(new_path.clone(), value); |
| 48 | } else { |
| 49 | self.value_map.remove(new_path); |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | pub fn get_paths_iter(&self) -> Vec<Rc<Path>> { |
| 54 | self.value_map.keys().cloned().collect() |
no test coverage detected