diff options
| author | Murarth <murarth@gmail.com> | 2017-07-26 15:09:32 -0700 |
|---|---|---|
| committer | Murarth <murarth@gmail.com> | 2017-08-14 20:42:26 -0700 |
| commit | 618ac89d256adca97518742db2ad2759c4f5fc72 (patch) | |
| tree | ee0c3f861bf2c64d78d5205c54a7273b2bdc9b39 /src/liballoc/tests/lib.rs | |
| parent | 599be0d18f4c6ddf36366d2a5a2ca6dc65886896 (diff) | |
| download | rust-618ac89d256adca97518742db2ad2759c4f5fc72.tar.gz rust-618ac89d256adca97518742db2ad2759c4f5fc72.zip | |
Add method `String::retain`
Behaves like `Vec::retain`, accepting a predicate `FnMut(char) -> bool` and reducing the string to only characters for which the predicate returns `true`.
Diffstat (limited to 'src/liballoc/tests/lib.rs')
| -rw-r--r-- | src/liballoc/tests/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/liballoc/tests/lib.rs b/src/liballoc/tests/lib.rs index c6d70ee7575..d4f3a89ee99 100644 --- a/src/liballoc/tests/lib.rs +++ b/src/liballoc/tests/lib.rs @@ -26,6 +26,7 @@ #![feature(splice)] #![feature(str_checked_slicing)] #![feature(str_escape)] +#![feature(string_retain)] #![feature(test)] #![feature(unboxed_closures)] #![feature(unicode)] |
