Skip to content
Dhruv Patel

, 5 min read, rust, api-design

Why Rust ranges took eleven years to become Copy

ops::Range was never Copy because it is its own Iterator, and a Copy iterator forks its state. Rust 1.96's core::range types implement IntoIterator instead.

Filed under rust, api-design.

Comments

Loading comments