Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

The inner of the newtype is alway public #10

Open
ithinuel opened this issue Apr 23, 2018 · 1 comment
Open

The inner of the newtype is alway public #10

ithinuel opened this issue Apr 23, 2018 · 1 comment
Milestone

Comments

@ithinuel
Copy link
Contributor

It would be nice to be able to hide the inner element of the "newtypes".

@dzamlo
Copy link
Owner

dzamlo commented Apr 23, 2018

My reasoning was that bitfield is only a thin wrapper around the inner type and as such you will likely want to have access to the inner type. But it may make sense to have it private by default, if you don't add pub.

@dzamlo dzamlo added this to the 0.14.0 milestone Jun 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants