moveToGC
fn
T * moveToGC(T)(auto ref T value)Moves a value to a new GC allocation.
Parameters
value | Value to be moved. If the argument is an lvalue and a struct with a destructor or postblit, it will be reset to its .init value. |
Returns
A pointer to the new GC-allocated value.