4 ms·
I don't think you can hold multiple mutable non-overlapping slices though, which this would appear to allow. Edit: I see you're talking about pony, not the op.
by foota 7y ago
I don't think you can hold multiple mutable non-overlapping slices though, which this would appear to allow.
Edit: I see you're talking about pony, not the op. It would seem your comment is correct. Although, pony seems to have a slightly different perspective on it.
- dbaupp 7y agoRust allows multiple mutable non-overlapping slices. They cannot be constructed by direct array[i..j] slicing, but there is a variety of convenience functions for it. Sequential: https://doc.rust-lang.org/std/primitive.slice.html#method.split_at_mut https://doc.rust-lang.org/std/primitive.slice.html#method.sp... https://doc.rust-lang.org/std/primitive.slice.html#method.split_at_mut https://doc.rust-lang.org/std/primitive.slice.html#method.sp... Parallel: https://docs.rs/rayon/1.2.0/rayon/slice/trait.ParallelSliceMut.html#method.par_chunks_mut https://docs.rs/rayon/1.2.0/rayon/slice/trait.ParallelSliceM...