Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Interesting, are "trusted-length" iterators something that might ever make it into userspace? Maybe as const generics?


It’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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: