Should std::ops::Range be Copy?

#1

Hey Guys,

Just been writing some code today, and surprised to find that std::ops::Range<Idx> is not Copy when Idx is Copy.

It would seem to make sense to me, considering it’s just a start and end point, for it to be Copy when it’s index type is also Copy.

Is there some reason this wasn’t made the case that I’m not seeing?

0 Likes

#2

See https://github.com/rust-lang/rust/pull/27186

1 Like

closed #3

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

0 Likes