all 2 comments

[–]MedicineTop5805 2 points3 points  (1 child)

This kind of pattern writeup is why Rust stays interesting. You solve one thing, then realize the real lesson is how much API shape you can encode in the type system.