Skip to content
Discussion options

You must be logged in to vote

PyO3 doesn't support transfer of ownership out of Python objects and it's unlikely to be planned, see #2225

PyRefMut<T> and &Bound<T> are mostly equivalent and you can use whichever you prefer. &Bound<T> allows you to make the borrow shorter, which might be useful in concurrent situations.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by taegyunkim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants