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

Method current_borrow_count

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

Source from the content-addressed store, hash-verified

249 }
250
251 fn current_borrow_count(&self, _py: Python) -> usize {
252 self.borrow_count.load(Ordering::Relaxed)
253 }
254
255 fn increase_borrow_count(&self, _py: Python) {
256 // this wraps around if there are more than usize::MAX borrowed

Callers 1

try_borrow_mutMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected