Registering, storing, and unregistering event handlers, what's the best practice?

Box doesn't allocate for ZSTs. Box might be holding a thin or a wide pointer. Some wide pointers not might have the guarantees you assume. You've been here before.

1 Like