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

Method new

crates/vm/src/stdlib/_abc.rs:45–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 #[pyclass(with(Constructor))]
44 impl AbcData {
45 fn new() -> Self {
46 AbcData {
47 registry: PyRwLock::new(None),
48 cache: PyRwLock::new(None),
49 negative_cache: PyRwLock::new(None),
50 negative_cache_version: AtomicU64::new(get_invalidation_counter()),
51 }
52 }
53
54 fn get_cache_version(&self) -> u64 {
55 self.negative_cache_version.load(Ordering::SeqCst)

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
get_invalidation_counterFunction · 0.85

Tested by

no test coverage detected