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

Method insert

src/entity/set.rs:95–98  ·  view source on GitHub ↗
(&mut self, entity: T)

Source from the content-addressed store, hash-verified

93 #[inline]
94 #[track_caller]
95 pub fn insert(&mut self, entity: T) {
96 let (idx, bit) = Self::index(entity);
97 self.storage[idx] |= 1 << bit;
98 }
99
100 /// Removes an element from the set.
101 #[inline]

Callers 15

make_availableMethod · 0.45
make_unavailableMethod · 0.45
get_scratch_regMethod · 0.45
add_moveMethod · 0.45
resolveMethod · 0.45
add_fixed_defMethod · 0.45
add_fixed_useMethod · 0.45
emit_source_half_moveMethod · 0.45
reserve_fixed_useMethod · 0.45
reserve_fixed_defMethod · 0.45
evictMethod · 0.45
propagate_to_predsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected