serde_with icon indicating copy to clipboard operation
serde_with copied to clipboard

Use the Iterator → Array function from the Rust standard library

Open jonasbb opened this issue 3 years ago • 0 comments

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. https://github.com/rust-lang/rust/pull/69985 https://github.com/rust-lang/rust/issues/81615

core::array::try_from_fn: Currently blocked on try trait v2. See tracking issue https://github.com/rust-lang/rust/issues/89379

jonasbb avatar Mar 27 '21 21:03 jonasbb