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

Method insert

src/entity/small_set.rs:123–126  ·  view source on GitHub ↗
(&mut self, entity: T)

Source from the content-addressed store, hash-verified

121 /// Inserts an element into the set.
122 #[inline]
123 pub fn insert(&mut self, entity: T) {
124 let idx = Self::index(entity);
125 self.storage[idx / W::BITS] |= W::bit(idx % W::BITS);
126 }
127
128 /// Removes an element from the set.
129 #[inline]

Callers 2

extendMethod · 0.45
visit_seqMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected