3 ms·
For Zip it's TrustedRandomAccess[0] instead of TrustedLen. Imo the most radioactively unsafe trait in the standard library and will likely never be stabilized i
by the8472 4y ago
For Zip it's TrustedRandomAccess[0] instead of TrustedLen. Imo the most radioactively unsafe trait in the standard library and will likely never be stabilized in its current form.
[0] https://github.com/rust-lang/rust/blob/f540a25745e03cfe9eac7e3a5e5489d36e4ad58a/library/core/src/iter/adapters/zip.rs#L474-L530 https://github.com/rust-lang/rust/blob/f540a25745e03cfe9eac7...