os-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 simplification: do not process the ArrayChunks remainder in fold() 2022-11-07 21:44:25 +01:00
by_ref_sized.rs Properly forward ByRefSized::fold to the inner iterator 2022-08-14 22:55:30 -07:00
chain.rs Change advance(_back)_by to return usize instead of Result<(), usize> 2023-03-27 14:11:49 +02:00
cloned.rs library/core/test/iter add newlines between tests 2021-01-22 16:58:21 -05:00
copied.rs library/core/test/iter.rs split attempt 2 2021-01-21 19:36:32 -05:00
cycle.rs library/core/test/iter.rs split attempt 2 2021-01-21 19:36:32 -05:00
enumerate.rs library/core/tests/iter rearrange & add back missed doc comments 2021-01-22 17:57:07 -05:00
filter.rs library/core/tests/iter rearrange & add back missed doc comments 2021-01-22 17:57:07 -05:00
filter_map.rs library/core/tests/iter rearrange & add back missed doc comments 2021-01-22 17:57:07 -05:00
flat_map.rs library/core/tests/iter rearrange & add back missed doc comments 2021-01-22 17:57:07 -05:00
flatten.rs Change advance(_back)_by to return usize instead of Result<(), usize> 2023-03-27 14:11:49 +02:00
fuse.rs library/core/tests/iter rearrange & add back missed doc comments 2021-01-22 17:57:07 -05:00
inspect.rs library/core/test/iter add newlines between tests 2021-01-22 16:58:21 -05:00
intersperse.rs eplace usages of vec![].into_iter with [].into_iter 2022-01-09 14:09:25 +11:00
map.rs library/core/tests/iter rearrange & add back missed doc comments 2021-01-22 17:57:07 -05:00
mod.rs Match unmatched backticks in library/ 2023-03-03 03:03:29 +01:00
peekable.rs eplace usages of vec![].into_iter with [].into_iter 2022-01-09 14:09:25 +11:00
scan.rs library/core/test/iter.rs split attempt 2 2021-01-21 19:36:32 -05:00
skip.rs Change advance(_back)_by to return usize instead of Result<(), usize> 2023-03-27 14:11:49 +02:00
skip_while.rs library/core/test/iter add newlines between tests 2021-01-22 16:58:21 -05:00
step_by.rs Remove unexpected #[cfg(target_pointer_width = "8")] in tests 2022-03-09 00:30:17 +01:00
take.rs Change advance(_back)_by to return usize instead of Result<(), usize> 2023-03-27 14:11:49 +02:00
take_while.rs library/core/test/iter add newlines between tests 2021-01-22 16:58:21 -05:00
zip.rs disable test on platforms that don't support unwinding 2021-06-20 12:20:05 +02:00