HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by vlovich123 | Hacker News Reader
Parent
Full thread
vlovich123
·
impl From<(OldState, Input)> for NewState would be one way.
View on HN
fcoury
·
Ok you just blew my mind with this pattern. I created a similar From trait only to take in an extra param so many times. Thanks for this.
mijoharas
·
Ahh, nice. Didn't think of that!
Reply on news.ycombinator.com