Adds the given value to the set of values for an `AllocationUnit`.
(&mut self, unit: AllocationUnit, value: Value)
| 96 | |
| 97 | /// Adds the given value to the set of values for an `AllocationUnit`. |
| 98 | fn add_value(&mut self, unit: AllocationUnit, value: Value) { |
| 99 | let values = self.unit_values.entry(unit).or_default(); |
| 100 | values.push(value); |
| 101 | } |
| 102 | |
| 103 | /// Sets the `AllocationUnit` to contain only the given value. |
| 104 | fn set_value(&mut self, unit: AllocationUnit, value: Value) { |
no test coverage detected