I want to test if a slice of bytes matches a particular pattern. 16 digits followed by either + or - and then 4 digits. This is what I've come up with but I'm sure you experts on Rust iterators could improve this nested if statement. Thanks!
I spent the afternoon reading about iterators to get that to work and I was quite proud of myself at the time :). I know what I was thinking, I've seen things like ok_or and is_some_and for the Option Enum and was over thinking something similar might exist for iterators. Thanks for clearing the fog in my brain. That works a treat.