It is very procedural/object oriented. This is not considered good Rust practice. Iterators make it more functional, which is better, more succinct that is, and enums more algebraic. But it's totally fine for a thought experiment.
Never knew Rust could be that readable. Makes me think other Rust engineers are stuck in a masochistic ego driven contest, which would explain everything else I've encountered about the Rust community and recruiting on that side.
Most Rust code looks like this - only generic library code goes crazy with all the generics and lifetimes, due to the need to avoid unnecessary mallocs and also provide a flexible API to users.
koakuma-chan|5 months ago
Revisional_Sin|5 months ago
unknown|5 months ago
[deleted]
emporas|5 months ago
unknown|5 months ago
[deleted]
yieldcrv|5 months ago
GardenLetter27|5 months ago
But most people aren't writing libraries.
jmaker|5 months ago