(&self)
| 744 | type Resizable<'a> = PyRwLockWriteGuard<'a, PyBytesInner>; |
| 745 | |
| 746 | fn try_resizable_opt(&self) -> Option<Self::Resizable<'_>> { |
| 747 | let w = self.inner.write(); |
| 748 | (self.exports.load(Ordering::SeqCst) == 0).then_some(w) |
| 749 | } |
| 750 | } |
| 751 | |
| 752 | impl AsMapping for PyByteArray { |