Returns an iterator over all `AllocationUnit`s containing the given value.
(&self, value: Value)
| 119 | /// Returns an iterator over all `AllocationUnit`s containing the given |
| 120 | /// value. |
| 121 | fn units_containing_value(&self, value: Value) -> impl Iterator<Item = AllocationUnit> + '_ { |
| 122 | self.unit_values |
| 123 | .iter() |
| 124 | .filter(move |(_, values)| values.contains(&value)) |
| 125 | .map(|&(unit, _)| unit) |
| 126 | } |
| 127 | |
| 128 | /// Updates the state of an `AllocationUnit` to indicate it no longer holds |
| 129 | /// a value. |
no test coverage detected