Skip to content

Pass List from Python to Rust without cloning elements #2037

Answered by birkenfeld
cswinter asked this question in Questions
Discussion options

You must be logged in to vote

You can extract a &PyCell<RaggedBufferF32> and borrow it to get a &RaggedBufferF32.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@birkenfeld
Comment options

@cswinter
Comment options

@birkenfeld
Comment options

Answer selected by davidhewitt
Comment options

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