Enums like Key are likely to be extended at some point in the future - this would currently technically be a breaking change, as if someone happens to be matching on every variant (e.g. for a conversion method?) then their code would no longer compile.
In 0.7, I should do an audit of all the enums in the crate and add #[non_exhaustive] where appropriate to prevent this from being a problem going forward.
Summary
Enums like
Key
are likely to be extended at some point in the future - this would currently technically be a breaking change, as if someone happens to be matching on every variant (e.g. for a conversion method?) then their code would no longer compile.In 0.7, I should do an audit of all the enums in the crate and add
#[non_exhaustive]
where appropriate to prevent this from being a problem going forward.Motivation/Examples
No response
Alternatives Considered
No response