about summary refs log tree commit diff
path: root/src/libcore/tests/array.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-06-17 07:49:25 +0000
committerbors <bors@rust-lang.org>2018-06-17 07:49:25 +0000
commitaec00f97e1cdcea2b079e209a7e759201ba6ca7c (patch)
tree4ed19581adc5d794890fbf515848d2432b96a559 /src/libcore/tests/array.rs
parent0f8f4903f73a21d7f408870551c08acd051abeb0 (diff)
parent2a999b4b525ed8b4f735e233cc065b292d3eeb03 (diff)
downloadrust-aec00f97e1cdcea2b079e209a7e759201ba6ca7c.tar.gz
rust-aec00f97e1cdcea2b079e209a7e759201ba6ca7c.zip
Auto merge of #51466 - joshlf:ref-split, r=dtolnay
Add Ref/RefMut map_split method

As proposed [here](https://internals.rust-lang.org/t/make-refcell-support-slice-splitting/7707).

TLDR: Add a `map_split` method that allows multiple `RefMut`s to exist simultaneously so long as they refer to non-overlapping regions of the original `RefCell`. This is useful for things like the slice `split_at_mut` method.
Diffstat (limited to 'src/libcore/tests/array.rs')
0 files changed, 0 insertions, 0 deletions