10
Github implement `TrustedRandomAccess` for `Take` iterator adapter by the8472 ·...
source link: https://github.com/rust-lang/rust/pull/83990
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
TrustedRandomAccess
requires the iterator length to fit within usize
. take(n)
only constrains the upper bound of an iterator. So if the inner is TrustedRandomAccess
(which already implies a finite length) then so can be Take
.
@rustbot label T-libs-impl
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK