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

Use the Iterator → Array function from the Rust standard library #292

Closed
jonasbb opened this issue Mar 27, 2021 · 0 comments
Closed

Use the Iterator → Array function from the Rust standard library #292

jonasbb opened this issue Mar 27, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@jonasbb
Copy link
Owner

jonasbb commented Mar 27, 2021

https://github.com/rust-lang/rust/blob/afaf33dcafe9c7068b63eb997df221aa08db7c29/library/core/src/array/mod.rs#L563-L628

This is not a public function, so the code needs to be copied.
This is very likely be better than the existing code.
The function uses too many unstable features to be useful right now.

These issues track adding such a function to the standard library.
rust-lang/rust#69985
rust-lang/rust#81615

core::array::try_from_fn: Currently blocked on try trait v2. See tracking issue rust-lang/rust#89379

@jonasbb jonasbb added the enhancement New feature or request label Mar 28, 2021
@jonasbb jonasbb closed this as completed Mar 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant