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

hybrid-array: Convert &[[T; N]] to &[Array<T, N>] #951

Closed
sinui0 opened this issue Sep 13, 2023 · 1 comment · Fixed by #1038
Closed

hybrid-array: Convert &[[T; N]] to &[Array<T, N>] #951

sinui0 opened this issue Sep 13, 2023 · 1 comment · Fixed by #1038

Comments

@sinui0
Copy link
Contributor

sinui0 commented Sep 13, 2023

Noticed that yall are looking to migrate to hybrid-array instead of bumping to generic-array 1.0, thought I'd get ahead of this:

Can hybrid-array provide conversion methods to/from slices of core arrays?

Eg:

pub fn from_core_arrays_mut<const U: usize>(arrs: &mut [[T; U]]) -> &mut [Array<T, N>] {}

This helps support dependent code which already uses const generics.

Related: fizyk20/generic-array#145

@tarcieri
Copy link
Member

Yes, we can support that

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

Successfully merging a pull request may close this issue.

2 participants