-
Notifications
You must be signed in to change notification settings - Fork 7
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
Tuple support #17
Comments
Unfortunately the memory layout for tuples is not defined. While in practice e.g. a |
I see, then there is no way to implement that reliably for now. Thanks for the explanation. |
This could be fixed by submitting a Rust RFC that defines that the memory layout of homogeneous tuples is equivalent to the corresponding array. I don't think there's any practical reason to not define it like that other than nobody having spent time on that yet. |
The support for primitive arrays from #18 can kind of help here. Instead of working with e.g. |
Would you be willing to pull the patch that adds support for tuples? It looks like the code is good to go and it is only a matter of adding
impl_trait!((T, T))
for each type and then testing it.I wouldn't go deep with the size of tuples and only implement pairs which I think is the most common case.
The text was updated successfully, but these errors were encountered: