3 ms·impl From<(OldState, Input)> for NewState would be one way.by vlovich123 2y agoimpl From<(OldState, Input)> for NewState would be one way.fcoury 2y agoOk 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 2y agoAhh, nice. Didn't think of that!