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

Method try_resizable_opt

crates/vm/src/stdlib/_io.rs:4833–4836  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

4831 type Resizable<'a> = PyRwLockWriteGuard<'a, BufferedIO>;
4832
4833 fn try_resizable_opt(&self) -> Option<Self::Resizable<'_>> {
4834 let w = self.buffer.write();
4835 (self.exports.load() == 0).then_some(w)
4836 }
4837 }
4838
4839 #[repr(u8)]

Callers 1

try_resizableMethod · 0.45

Calls 2

writeMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected