7
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 19 Nov 2024
7 points (100.0% liked)
Rust Programming
8799 readers
1 users here now
founded 6 years ago
MODERATORS
use-case?
Different functions whose possible failure reasons have a non-empty intersection, but don't coincide completely (IDK if this clarifies? I think the example code in the OP is clearer)
Yeah, I got that.
I'm asking what would be the benefit of not using a single error enum for all failure reasons?