MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / BorrowPyShared

Class BorrowPyShared

src/sharedref.rs:280–283  ·  view source on GitHub ↗

Helper to keep the borrow count updated while the shared object is immutably borrowed without using the `RefCell` interface.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected