I'm wondering if it's better to use an tagged-enum or to use struct. Since a lot of operators (eg: increment) depend on just the value, I figure using the pattern-matching for tagged-enum will be more bothersome compared to struct where we can opt-into match expr as and when needed
enum RangeEnd {
Bounded(u32),
Unbounded(u32),
}
// vs
struct RangeEnd {
value: u32,
bounded: bool,
}
Please note: my understanding of match expr and rust idioms is surface-level 😅