Closed CPerezz closed 4 years ago
Copy
trait is for raw memcpy-ing the bytes. But LinearCombination
contains a Vec
which owns a pointer to a heap. It is incorrect to attempt to copy such pointer w/o copying the entire vector, hence Vec
does not implement Copy
and therefore LC
also doesn't.
@oleganza you're totally right. Idk what I was thinking. Sorry for the inconvenience. Closing the issue.
I haven't been able to find any reason why the
Copy
trait cannot be derived/implemented forLinearCombination
(Security/design reasons mentioned in the repo or something like this).It would be nice to have it (at least from my POV) since it enables to perform operations like: