4 ms·
Yes, to do anything interesting, you need to implement the Drop trait, which causes interesting behavior to happen here.
by steveklabnik 7y ago
Yes, to do anything interesting, you need to implement the Drop trait, which causes interesting behavior to happen here.
- dmix 7y agoAn example of the implementation is all that's missing from the blog post.
- steveklabnik 7y agohttps://doc.rust-lang.org/stable/std/ops/trait.Drop.html https://doc.rust-lang.org/stable/std/ops/trait.Drop.html