Merges all entries from `other` into `self`.
(&mut self, other: &ResolvedIds)
| 2350 | |
| 2351 | /// Merges all entries from `other` into `self`. |
| 2352 | pub fn extend_from(&mut self, other: &ResolvedIds) { |
| 2353 | for (id, gids) in &other.entries { |
| 2354 | self.entries |
| 2355 | .entry(*id) |
| 2356 | .or_default() |
| 2357 | .extend(gids.iter().copied()); |
| 2358 | } |
| 2359 | } |
| 2360 | |
| 2361 | /// Create a new [`ResolvedIds`] that contains the elements from `self` |
| 2362 | /// where `predicate` returns `true`. |
no test coverage detected