10

Github implement `TrustedRandomAccess` for `Take` iterator adapter by the8472 ·...

 3 years ago
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.
neoserver,ios ssh client

Copy link

Contributor

the8472 commented on Apr 8

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


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK