MCPcopy Create free account
hub / github.com/Amanieu/regalloc3 / units_containing_value

Method units_containing_value

src/debug_utils/checker.rs:121–126  ·  view source on GitHub ↗

Returns an iterator over all `AllocationUnit`s containing the given value.

(&self, value: Value)

Source from the content-addressed store, hash-verified

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.

Callers 1

check_blockMethod · 0.80

Calls 3

mapMethod · 0.80
iterMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected