69db91b8b2
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. |
||
---|---|---|
.. | ||
array_chunks.rs | ||
by_ref_sized.rs | ||
chain.rs | ||
cloned.rs | ||
copied.rs | ||
cycle.rs | ||
enumerate.rs | ||
filter_map.rs | ||
filter.rs | ||
flat_map.rs | ||
flatten.rs | ||
fuse.rs | ||
inspect.rs | ||
intersperse.rs | ||
map.rs | ||
mod.rs | ||
peekable.rs | ||
scan.rs | ||
skip_while.rs | ||
skip.rs | ||
step_by.rs | ||
take_while.rs | ||
take.rs | ||
zip.rs |