MCPcopy Index your code
hub / github.com/RustPython/RustPython / next

Method next

crates/vm/src/dict_inner.rs:159–167  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

157 }
158
159 const fn next(&mut self) -> usize {
160 let prev = self.idx;
161 self.idx = prev
162 .wrapping_mul(5)
163 .wrapping_add(self.perturb)
164 .wrapping_add(1);
165 self.perturb >>= 5;
166 (prev & self.mask) as usize
167 }
168}
169
170impl<T> DictInner<T> {

Callers 2

resizeMethod · 0.45
lookupMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected