Mentioned this to the other commenter, but this doesn't use the type system to enforce the mutual exclusivity constraint. In Rust, the main way to do that via the type system is through enums.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
replies: