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

Method try_resizable_opt

crates/stdlib/src/array.rs:1377–1380  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1375 type Resizable<'a> = PyRwLockWriteGuard<'a, ArrayContentType>;
1376
1377 fn try_resizable_opt(&self) -> Option<Self::Resizable<'_>> {
1378 let w = self.write();
1379 (self.exports.load(atomic::Ordering::SeqCst) == 0).then_some(w)
1380 }
1381 }
1382
1383 #[pyattr]

Callers

nothing calls this directly

Calls 2

writeMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected