4 ms·
TBF for cases which are not overly complex like your case you just need the right enums and functions e.g. https://play.rust-lang.org/?version=stable&mode=debug
by masklinn 7y ago
TBF for cases which are not overly complex like your case you just need the right enums and functions e.g. https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=898a93af528fd3d164b166dbea0436e6 https://play.rust-lang.org/?version=stable&mode=debug&editio...