mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-30 00:23:41 +00:00
9c44d80c83
Previously, converting `&mut [T; N]` to `&[Cell<T>; N]` looks like this: let array = &mut [1, 2, 3]; let cells: &[Cell<i32>; 3] = Cell::from_mut(&mut array[..]) .as_slice_of_cells() .try_into() .unwrap(); With this new helper method, it looks like this: let array = &mut [1, 2, 3]; let cells: &[Cell<i32>; 3] = Cell::from_mut(array).as_array_of_cells(); |
||
---|---|---|
.. | ||
benches | ||
src | ||
tests | ||
Cargo.toml |