Closed segeljakt closed 2 years ago
3
is possible. For 1 and 2 we would probably need to add GcClone
trait into comet
itself and a derive macro to make GcClone work. The main problem is that to clone GCed values we need to allocate memory for them
I'm wondering, would it be possible to:
impl Clone for comet_extra::alloc::string::String
impl Clone for comet_extra::alloc::vector::Vector
impl Collectable for comet_extra::alloc::vector::Vector
I get around 1 & 2 by wrapping them in
Gc<T, _>
. I cannot get around 3 though.