diff options
| author | Ulrik Sverdrup <root@localhost> | 2015-05-01 15:34:25 +0200 |
|---|---|---|
| committer | Ulrik Sverdrup <root@localhost> | 2015-05-01 19:51:31 +0200 |
| commit | ee48e6d192166be08a57dc4f5ba14256c072e9c3 (patch) | |
| tree | ee1c9e1b9aefe2a1ba00f426061e27ab60cb8cc4 /src/test/codegen/stack-alloc-string-slice.cc | |
| parent | 42bfeec53c266fb0b08ad90d324206bd3d64df16 (diff) | |
| download | rust-ee48e6d192166be08a57dc4f5ba14256c072e9c3.tar.gz rust-ee48e6d192166be08a57dc4f5ba14256c072e9c3.zip | |
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
