|
|
|
|
|
by Gwypaas
1602 days ago
|
|
Rust supports #[non_exhaustive] attributes, forcing users to cover the generic/wildcard case even though you have already covered all existing ones. Although, I rather do versioning and a breaking change if possible. Put it on the parsing/interop level rather than deep in the code during runtime because it is very likely that your code is not correct without handling the extra case either way. https://doc.rust-lang.org/reference/attributes/type_system.h... |
|