Helper to keep the borrow count updated while the shared object is immutably borrowed without using the `RefCell` interface.
| 278 | /// Helper to keep the borrow count updated while the shared object is |
| 279 | /// immutably borrowed without using the `RefCell` interface. |
| 280 | struct BorrowPyShared<'a> { |
| 281 | py: Python<'a>, |
| 282 | state: &'a PySharedState, |
| 283 | } |
| 284 | |
| 285 | impl<'a> BorrowPyShared<'a> { |
| 286 | fn new(py: Python<'a>, state: &'a PySharedState) -> BorrowPyShared<'a> { |
nothing calls this directly
no outgoing calls
no test coverage detected