rust/library/core/tests/iter/adapters
The 8472 69db91b8b2 Change advance(_back)_by to return usize instead of Result<(), usize>
A successful advance is now signalled by returning `0` and other values now represent the remaining number
of steps that couldn't be advanced as opposed to the amount of steps that have been advanced during a partial advance_by.

This simplifies adapters a bit, replacing some `match`/`if` with arithmetic. Whether this is beneficial overall depends
on whether `advance_by` is mostly used as a building-block for other iterator methods and adapters or whether
we also see uses by users where `Result` might be more useful.
2023-03-27 14:11:49 +02:00
..
array_chunks.rs
by_ref_sized.rs
chain.rs Change advance(_back)_by to return usize instead of Result<(), usize> 2023-03-27 14:11:49 +02:00
cloned.rs
copied.rs
cycle.rs
enumerate.rs library/core/tests/iter rearrange & add back missed doc comments 2021-01-22 17:57:07 -05:00
filter_map.rs
filter.rs
flat_map.rs
flatten.rs Change advance(_back)_by to return usize instead of Result<(), usize> 2023-03-27 14:11:49 +02:00
fuse.rs
inspect.rs
intersperse.rs
map.rs
mod.rs Match unmatched backticks in library/ 2023-03-03 03:03:29 +01:00
peekable.rs
scan.rs
skip_while.rs
skip.rs Change advance(_back)_by to return usize instead of Result<(), usize> 2023-03-27 14:11:49 +02:00
step_by.rs
take_while.rs
take.rs Change advance(_back)_by to return usize instead of Result<(), usize> 2023-03-27 14:11:49 +02:00
zip.rs