Files
rust/library/std/src
Manish Goregaokar 84d8159ebf Rollup merge of #97594 - WaffleLapkin:array_tuple_conv, r=ChrisDenton
Implement tuple<->array convertions via `From`

This PR adds the following impls that convert between homogeneous tuples and arrays of the corresponding lengths:
```rust
impl<T> From<[T; 1]> for (T,) { ... }
impl<T> From<[T; 2]> for (T, T) { ... }
/* ... */
impl<T> From<[T; 12]> for (T, T, T, T, T, T, T, T, T, T, T, T) { ... }

impl<T> From<(T,)> for [T; 1] { ... }
impl<T> From<(T, T)> for [T; 2] { ... }
/* ... */
impl<T> From<(T, T, T, T, T, T, T, T, T, T, T, T)> for [T; 12] { ... }
```

IMO these are quite uncontroversial but note that they are, just like any other trait impls, insta-stable.
2023-05-03 16:42:47 -07:00
..
2023-04-16 06:49:27 +00:00
2022-12-11 01:20:18 -05:00
2022-12-11 01:20:18 -05:00
2023-04-12 19:27:18 +02:00
2023-04-28 08:47:55 -07:00
2023-05-01 13:25:09 +02:00
2023-05-01 13:28:19 +02:00
2022-08-18 18:07:39 -04:00
2023-04-27 15:56:57 +02:00
2023-04-28 08:47:55 -07:00
2022-09-26 10:14:45 +02:00
2023-05-01 13:25:09 +02:00
2023-04-26 02:10:22 -04:00
2022-12-31 15:32:09 +05:30
2023-03-17 21:00:10 -07:00
2023-05-01 13:25:09 +02:00
2023-04-29 19:04:16 +08:00