This Rust book is cool. Did the number guessing game project. Section about handling:
input read as string, convert to integer. If that fails, do match handling which turns it into a setter.
That took my brain for dinner, then invited it home and fucked it.
https://rust-book.cs.brown.edu/ch02-00-guessing-game-tutorial.html#handling-invalid-input