MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / current_generation

Method current_generation

src/sharedref.rs:266–268  ·  view source on GitHub ↗
(&self, _py: Python)

Source from the content-addressed store, hash-verified

264 }
265
266 fn current_generation(&self, _py: Python) -> usize {
267 self.generation.load(Ordering::Relaxed)
268 }
269
270 fn increment_generation(&self, py: Python) {
271 assert_eq!(self.current_borrow_count(py), 0);

Callers 2

try_leak_immutableMethod · 0.80
validate_generationMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected