Replying to
@ichnichdu @nblr ist es ein Import oder Export, wenn Antimaterie exportiert wird?
mastodon 4.6.9Teaching computers to do things with arguable efficiency.
he/him
TIL: `get_disjoint_mut` exists. It allows getting mut refs to multiple elements of a slice. Previously one had to use the `split_at_mut` trick to achieve this.
When searching (or asking AIs) for this I still only find the `split_at_mut` approach.
https://doc.rust-lang.org/beta/std/primitive.slice.html#method.get_disjoint_mut