3 ms·
Interesting, are "trusted-length" iterators something that might ever make it into userspace? Maybe as const generics?
by brundolf 4y ago
Interesting, are "trusted-length" iterators something that might ever make it into userspace? Maybe as const generics?
- masklinn 4y agoIt’s already in userspace, though nightly (and unsafe, obviously), so whether it’ll be stabilised, and in what form, is an open question: https://doc.rust-lang.org/std/iter/trait.TrustedLen.html https://doc.rust-lang.org/std/iter/trait.TrustedLen.html