Skip to content

Tracking Issue for vec_into_chunks #142137

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

Open
1 of 3 tasks
ashivaram23 opened this issue Jun 7, 2025 · 0 comments
Open
1 of 3 tasks

Tracking Issue for vec_into_chunks #142137

ashivaram23 opened this issue Jun 7, 2025 · 0 comments
Labels
C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC S-tracking-unimplemented Status: The feature has not been implemented. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Comments

@ashivaram23
Copy link

ashivaram23 commented Jun 7, 2025

Feature gate: #![feature(vec_into_chunks)]

This is a tracking issue for Vec::into_chunks. The ACP is in rust-lang/libs-team#583.

This converts Vec<T> into Vec<[T; N]>, reversing Vec::into_flattened.

Public API

// alloc::vec

impl<T, A: Allocator> Vec<T, A> {
    pub fn into_chunks<const N: usize>(mut self) -> Vec<[T; N], A>;
}

Steps / History

(Remember to update the S-tracking-* label when checking boxes.)

Unresolved Questions

  • None yet.

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html

@ashivaram23 ashivaram23 added T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC S-tracking-unimplemented Status: The feature has not been implemented. labels Jun 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC S-tracking-unimplemented Status: The feature has not been implemented. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

1 participant