-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
In implementing #24 and using it in our code based, the TryFromKnownRepr
is useful but only moderately, since you still can't get an exhaustive match on just the known variants afterwards. It would be nice to somehow expose the original closed form of the enum as well, either as just OriginalIdentClosed
or perhaps some trait
trait OpenEnum {
type Closed;
}
then you can OriginalIdent::Closed
?
And provide infallible From<Closed> for Open
and fallible TryFrom<Closed> for Open
, as replacement for TryFromKnownRepr
.
Metadata
Metadata
Assignees
Labels
No labels