I’m trying to store a map of values of arbitrary types that are all valid for some lifetime
'a. The problem is
'a is not
'static, so I can’t use a cheeky
Box<Any>. Is there some other way to do this in Rust? I thought if there was something like
Any, but valid for some explicit lifetime instead of being static that would be good.
I’m not against an unsafe solution, but have written a grand total of 1 line of unsafe code, so am not sure how to approach it