-
Notifications
You must be signed in to change notification settings - Fork 79
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
Obtaining &[T; N] for GenericArray<T, N> #52
Comments
|
It would need something similar to this: https://github.com/fizyk20/generic-array/blob/master/src/impls.rs#L138 But perhaps implementing |
At some point, I guess it might be worth giving up and waiting for const generics 😜 |
I had another look at the problem (sorry for the delay!) - implementing Or maybe it's not as bad as I think? Are there reasonable situations in which this would be ambiguous? I'm not sure... |
Yeah, I have not had good luck with having impls of both Will go ahead and close this out then. |
Apologies if there's already a way to do this, but I can't figure it out.
I'd like to pass a generic array as a sized array reference. I'm able to do this using e.g. the arrayref crate but I'd like to avoid that if possible (among other things by virtue of using a macro that expands to unsafe code I'm unable to
deny(unsafe_code)
.The text was updated successfully, but these errors were encountered: