2 ms·
The post isn't talking about the drop method of the Drop trait, which is used to hook into the drop functionally. It's talking instead about std::mem::drop, a
by Rusky 7y ago
The post isn't talking about the drop method of the Drop trait, which is used to hook into the drop functionally.
It's talking instead about std::mem::drop, a standard library function that drops a value before it would ordinarily go out of scope.