about summary refs log tree commit diff
path: root/src/test/codegen/stack-alloc-string-slice.cc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-05-02 04:35:33 +0000
committerbors <bors@rust-lang.org>2015-05-02 04:35:33 +0000
commit700b4c160bebb812951387074331a71d54805db0 (patch)
treea94c8d8b02890683167d9f4f7224292a19fedc8d /src/test/codegen/stack-alloc-string-slice.cc
parentb858b7f4ced2acaabcf1d0f59abd4a0c4a62ded3 (diff)
parentda03c9df33177d77029c52f8a68a5d214a6e83c7 (diff)
downloadrust-700b4c160bebb812951387074331a71d54805db0.tar.gz
rust-700b4c160bebb812951387074331a71d54805db0.zip
Auto merge of #25028 - bluss:drain-string, r=alexcrichton
collections: Implement String::drain(range) according to RFC 574

`.drain(range)` is unstable and under feature(collections_drain).

This adds a safe way to remove any range of a String as efficiently as
possible.

As noted in the code, this drain iterator has none of the memory safety
issues of the vector version.

RFC tracking issue is #23055
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.cc')
0 files changed, 0 insertions, 0 deletions