Skip to content

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

Description

@sinui0

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions