Skip to content

See if non_exhaustive would be useful for 1.0 #4080

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
tgross35 opened this issue Nov 17, 2024 · 0 comments
Open

See if non_exhaustive would be useful for 1.0 #4080

tgross35 opened this issue Nov 17, 2024 · 0 comments

Comments

@tgross35
Copy link
Contributor

There are a handful of structs that users should be able to access but possibly not construct in case fields change in the future. Currently we often do this by having a single private field, but maybe #[non_exhaustive] would be better suited here.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant