2 ms·
Interestingly enough, if your `close` logic is implemented in the `drop` method, `close` itself can be written as: fn close(self) { } ...which is—not inci
by stouset 7y ago
Interestingly enough, if your `close` logic is implemented in the `drop` method, `close` itself can be written as:
fn close(self) { }
...which is—not incidentally—the exact implementation of `std::mem::drop`(https://doc.rust-lang.org/beta/std/mem/fn.drop.html https://doc.rust-lang.org/beta/std/mem/fn.drop.html).