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

__align private field in in6_addr #55

Closed
totakura opened this issue Nov 10, 2015 · 1 comment
Closed

__align private field in in6_addr #55

totakura opened this issue Nov 10, 2015 · 1 comment

Comments

@totakura
Copy link

Hi, is there any reason why __align is declared in in6_addr? As of now it is preventing in6_addr struct to be created.

@alexcrichton
Copy link
Member

Ah yeah this is unfortunately because we don't support unions in a great way right now, I'd recommend creating instances via mem::zeroed or mem::uninitialized and then initializing each member individually (as you would in C). Eventually I hope to remove these fields though!

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