]> git.lizzy.rs Git - rust.git/commit
std_unicode: impl Clone for .split_whitespace()
authorUlrik Sverdrup <bluss@users.noreply.github.com>
Sun, 30 Apr 2017 19:07:39 +0000 (21:07 +0200)
committerUlrik Sverdrup <bluss@users.noreply.github.com>
Sun, 30 Apr 2017 19:20:20 +0000 (21:20 +0200)
commitf41ecef6d52200743b3672346a59fc1e2068e9e8
tree855808fb4a32b43b4d207f3112c7c91af4cf6aa2
parent06fb4d25642a3f223db1441972dd5962085cfba1
std_unicode: impl Clone for .split_whitespace()

Use custom closure structs for the predicates so that the iterator's
clone can simply be derived. This should also reduce virtual call
overhead by not using function pointers.
src/libstd_unicode/lib.rs
src/libstd_unicode/u_str.rs