about summary refs log tree commit diff
path: root/src/test/codegen/stack-alloc-string-slice.cc
diff options
context:
space:
mode:
authorKevin Ballard <kevin@sb.org>2013-08-03 13:51:49 -0700
committerKevin Ballard <kevin@sb.org>2013-08-29 22:49:26 -0700
commitfb0b388804ec6b4535e73a890feda7372182486f (patch)
treea8020a76bb4bd76303eb24e222d78874b803a18b /src/test/codegen/stack-alloc-string-slice.cc
parent7c6c7519a75064d11f855de862bcdaddcbe5df4b (diff)
downloadrust-fb0b388804ec6b4535e73a890feda7372182486f.tar.gz
rust-fb0b388804ec6b4535e73a890feda7372182486f.zip
Make the iterator protocol more explicit
Document the fact that the iterator protocol only defines behavior up
until the first None is returned. After this point, iterators are free
to behave how they wish.

Add a new iterator adaptor Fuse<T> that modifies iterators to return
None forever if they returned None once.
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.cc')
0 files changed, 0 insertions, 0 deletions