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 want to be able to do session.packet(xx).packet(xx) where xx implement From<xx> for Packet (the into part) but it seems to not work, or the into isn't applied to packet.
Any idea of a workaround on that?
Thank's!
The text was updated successfully, but these errors were encountered:
I believe the issue there is that Extend has its own type coercion magic going on and stacking the two breaks inference. See this discussion from the initial PR to add each.
If you can think of a way to do it, I'd probably make the API be:
That would avoid breaking backwards compatibility, and if there are some tradeoffs needed to make it work, this would make the author's choice explicit.
Hello,
I'm trying to have a nice api for one of my crates and I was wondering if I could be able to have a struct like this:
I want to be able to do
session.packet(xx).packet(xx)
wherexx
implementFrom<xx> for Packet
(the into part) but it seems to not work, or theinto
isn't applied topacket
.Any idea of a workaround on that?
Thank's!
The text was updated successfully, but these errors were encountered: