let Coordinates(x, y) = get_coords();
let Some((x, y)) = get_coords() else { return };
Once you internalize how patterns work (and they really work everywhere) it all starts to really make sense and feels a lot cleaner.
[1]: https://doc.rust-lang.org/reference/patterns.html
Once you internalize how patterns work (and they really work everywhere) it all starts to really make sense and feels a lot cleaner.
[1]: https://doc.rust-lang.org/reference/patterns.html