about summary refs log tree commit diff
path: root/src/liballoc_jemalloc
diff options
context:
space:
mode:
authorMurarth <murarth@gmail.com>2017-07-26 15:09:32 -0700
committerMurarth <murarth@gmail.com>2017-08-14 20:42:26 -0700
commit618ac89d256adca97518742db2ad2759c4f5fc72 (patch)
treeee0c3f861bf2c64d78d5205c54a7273b2bdc9b39 /src/liballoc_jemalloc
parent599be0d18f4c6ddf36366d2a5a2ca6dc65886896 (diff)
downloadrust-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_jemalloc')
0 files changed, 0 insertions, 0 deletions