▲ | steveklabnik 4 days ago | |||||||
The drop function being talked about here is the one I pointed to, not the one you pointed to. The Drop trait is built into the language (as a lang item), std::mem::drop is just a regular old function. | ||||||||
▲ | codedokode 4 days ago | parent [-] | |||||||
The drop that you mention doesn't free memory, as I understand, it is called before actually destroying object's memory. | ||||||||
|