Skip to content

Returning an array in 0.21 #507

Answered by fpoli
ndarilek asked this question in Q&A
Nov 6, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Have you tried using env.set_object_array_element(&array, ...) in the loop? I think a shared reference should be sufficient there, because the type of that method argument is AsRef.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ndarilek
Comment options

Answer selected by ndarilek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants