I would like to create an interior mutable boxed slice that can be sliced as
&[T]. But I'm struggling to find a way to do it:
UnsafeCell<Box<[T]>>would require making multiple mutable references to the box to dereference it.
Box<UnsafeCell<[T]>>would work but I can't figure out how to actually create it.
Box<[UnsafeCell<T>]>is not slicable as
#[repr(transparent)]but that's not guaranteed).
Is this even possible?