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 have an API that takes a type generic over the HasContext trait. It would be nice if you could also pass in &Context, Rc<Context> and other types in this way.
The text was updated successfully, but these errors were encountered:
It would probably be a macro that implements HasContext over Rc<T>, &T and others as methods that are just forwarded to the inner HasContext implementation.
I have an API that takes a type generic over the
HasContext
trait. It would be nice if you could also pass in&Context
,Rc<Context>
and other types in this way.The text was updated successfully, but these errors were encountered: