Convert to a set of paths for efficient lookup.
(&self)
| 284 | |
| 285 | /// Convert to a set of paths for efficient lookup. |
| 286 | pub fn path_set(&self) -> HashSet<&str> |
| 287 | where |
| 288 | T: HasPath, |
| 289 | { |
| 290 | self.files.iter().map(|f| f.path()).collect() |
| 291 | } |
| 292 | } |
| 293 | |
| 294 | impl<T> Default for CollectionResult<T> { |