Spent 45 mins earlier today writing a new (ish) implementation of a scope guard impl:
https://docs.rs/mini-scopeguard
This feels like something that should exist in the stdlib, and I think I might submit this for inclusion as core::drop::Guard
(or some variation on that name).
=> More informations about this toot | View the thread | More toots from yosh@toot.yosh.is
text/gemini
This content has been proxied by September (ba2dc).