Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Creating mutable array from references? #1315

Answered by sundy-li
Arty-Maly asked this question in Q&A
Discussion options

You must be logged in to vote

MutablePrimitiveArray need to own Vec<T>, so if you want to create it from another MutablePrimitiveArray, you need to move the memory otherwise it will have copy cost.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Arty-Maly
Comment options

@jorgecarleitao
Comment options

@Arty-Maly
Comment options

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