▲ | codedokode 4 days ago | ||||||||||||||||
As I remember, Cell only allows moving/copying data from/to cell so if you have a 128-byte object inside do you have to copy it to modify? Or this can be optimized? | |||||||||||||||||
▲ | kbolino 4 days ago | parent [-] | ||||||||||||||||
Yes, that's how Cell works. If you want to work with the data in place, you need a RefCell instead. | |||||||||||||||||
|