rust/library/core
Jack O'Connor 9c44d80c83 add Cell::as_array_of_cells, similar to Cell::as_slice_of_cells
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();
2021-08-23 01:00:34 -04:00
..
benches Use HTTPS links where possible 2021-06-23 16:26:46 -04:00
src add Cell::as_array_of_cells, similar to Cell::as_slice_of_cells 2021-08-23 01:00:34 -04:00
tests move object safety test to library/core 2021-08-15 13:00:25 -04:00
Cargo.toml rfc3052: Remove authors field from Cargo manifests 2021-07-29 14:56:05 -07:00