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

Method bump_version

crates/vm/src/dict_inner.rs:271–273  ·  view source on GitHub ↗

Bump the version counter after any mutation.

(&self)

Source from the content-addressed store, hash-verified

269
270 /// Bump the version counter after any mutation.
271 fn bump_version(&self) {
272 self.version.fetch_add(1, Release);
273 }
274
275 fn read(&self) -> PyRwLockReadGuard<'_, DictInner<T>> {
276 self.inner.read()

Callers 7

insertMethod · 0.80
clearMethod · 0.80
delete_or_insertMethod · 0.80
setdefaultMethod · 0.80
setdefault_entryMethod · 0.80
pop_inner_ifMethod · 0.80
pop_backMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected