Re:My favorite Rust function
by steveklabnik on Saturday October 12, 2019 @09:21PM
(#21237603)
Yes, to do anything interesting, you need to implement the Drop trait, which causes interesting behavior to happen here.
[ Parent
| on HN ]
An example of the implementation is all that's missing from the blog post.
Re:My favorite Rust function
by steveklabnik on Saturday October 12, 2019 @10:00PM
(#21237791)