3 ms·
Clone seems to be the shallowest kind copy permitted by the type and ownership system.
by kzrdude 5y ago
Clone seems to be the shallowest kind copy permitted by the type and ownership system.
- Blikkentrekker 5y agoWhich is why I find deep copies to be easier to implement than shallow. It is of course possible to express a shallower copy, but not in the same generic way as a universal trait, that I know of, in any case.