For something I'm working on, I'm using Weak pointers to keep certain allocations of a generic type around, but the way I'm using them I never need to turn them back into
The only functions I'm intentionally using are
Weak::clone, and (indirectly),
Currently I'm casting them to
Weak<dyn Any> which works for my purpose, although I'm a little sad about the 2x size cost of the fat-pointer.
Considering the limited set of functionality I'm using, is it safe to
mem::transmute (or otherwise cast) a
Weak<()> to remove the type information without creating a fat pointer?
This question seems to address a similar idea, although it's a different use case: