rust/library/alloc
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
..
benches Auto merge of #106241 - Sp00ph:vec_deque_iter_methods, r=the8472 2023-02-18 20:12:35 +00:00
src Change advance(_back)_by to return usize instead of Result<(), usize> 2023-03-27 14:11:49 +02:00
tests Change advance(_back)_by to return usize instead of Result<(), usize> 2023-03-27 14:11:49 +02:00
Cargo.toml Update rand in the stdlib tests, and remove the getrandom feature from it 2023-01-04 14:52:41 -08:00