Tracking Issue for const_slice_make_iter
#137737
Labels
C-tracking-issue
Category: An issue tracking the progress of sth. like the implementation of an RFC
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Feature gate:
#![feature(const_slice_make_iter)]
This is a tracking issue for making the following methods
const
:slice::iter
slice::iter_mut
slice::windows
slice::chunks
slice::chunks_mut
slice::chunks_exact
slice::chunks_exact_mut
slice::array_chunks
slice::array_chunks_mut
slice::array_windows
slice::rchunks
slice::rchunks_mut
slice::rchunks_exact
slice::rchunks_exact_mut
slice::chunk_by
slice::chunk_by_mut
This enables the storing iterators in associated constants, which can be marginally helpful for some esoteric use cases:
Now, you might be saying, that seems extremely niche. And you'd be right. But with
const
getting stronger and stronger with each release, having unnecessaryconst
limitations is preventing code reuse betweenconst
and non-const
functions.Public API
Steps
Unresolved Questions
Footnotes
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩
The text was updated successfully, but these errors were encountered: