You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: