I dont understand actually why borrowing is better instead of moving. I come from C/C++ and move is just assigning the pointer to the other pointer and null out the first pointer, so it's very cheap, no allocations at all. They say rust is fast, so it move operation should also be very cheap.
@alfredomoreira67612 жыл бұрын
The content of the video is wrong. rust move semantics are exactly like C++ one, no memory allocation. The video is missleading, the presentator is making wrong claims. really bad content. CNCF should review what their presentators are claiming.