rav1e icon indicating copy to clipboard operation
rav1e copied to clipboard

use const_generics for AlignedArray once it hits stable

Open lu-zero opened this issue 4 years ago • 2 comments

  • [ ] Replace the ARRAY generic with with a generic type bound over const N: usize and T
    • [ ] Potentially restrict it to only Copy types
  • [ ] Add an init_slice_mut() method
    • [ ] Replace the usage of init_slice_repeat_mut

See: https://github.com/rust-lang/rust/issues/44580

lu-zero avatar Jan 07 '20 18:01 lu-zero

Is this issue still relevant? I can't seem to find this AlignedArray type anywhere in the code.

EDIT: Nevermind, I figured it out. AlignedArray got renamed to just Aligned at some point. I will take a look at this

FreezyLemon avatar Jul 23 '23 10:07 FreezyLemon

We should revisit when the MaybeUninit methods specific for array hit stable, I guess

lu-zero avatar Jul 23 '23 11:07 lu-zero