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

Method version

crates/vm/src/dict_inner.rs:266–268  ·  view source on GitHub ↗

Monotonically increasing version counter for mutation tracking.

(&self)

Source from the content-addressed store, hash-verified

264impl<T: Clone> Dict<T> {
265 /// Monotonically increasing version counter for mutation tracking.
266 pub fn version(&self) -> u64 {
267 self.version.load(Acquire)
268 }
269
270 /// Bump the version counter after any mutation.
271 fn bump_version(&self) {

Callers 2

execute_instructionMethod · 0.45

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected