(&self)
| 86 | } |
| 87 | |
| 88 | pub fn borrow_buf(&self) -> PyMappedRwLockReadGuard<'_, [u8]> { |
| 89 | PyRwLockReadGuard::map(self.inner.read(), |inner| &*inner.elements) |
| 90 | } |
| 91 | |
| 92 | pub fn borrow_buf_mut(&self) -> PyMappedRwLockWriteGuard<'_, Vec<u8>> { |
| 93 | PyRwLockWriteGuard::map(self.inner.write(), |inner| &mut inner.elements) |
no test coverage detected