(&self)
| 134 | } |
| 135 | |
| 136 | pub fn borrow_vec(&self) -> PyMappedRwLockReadGuard<'_, [PyObjectRef]> { |
| 137 | PyRwLockReadGuard::map(self.elements.read(), |v| &**v) |
| 138 | } |
| 139 | |
| 140 | pub fn borrow_vec_mut(&self) -> PyRwLockWriteGuard<'_, Vec<PyObjectRef>> { |
| 141 | let guard = self.elements.write(); |
no test coverage detected