I can just take a Symbol, deref into a &T, clone the function pointer T, and boom, I am completely free from the 'lib lifetime.
Considering function pointers always have 'static lifetime, I don't think there is any safe alternative for this problem. Maybe manually implement Fn trait? But this is unstable.
I can just take a
Symbol
, deref into a&T
, clone the function pointerT
, and boom, I am completely free from the'lib
lifetime.Considering function pointers always have
'static
lifetime, I don't think there is any safe alternative for this problem. Maybe manually implementFn
trait? But this is unstable.