In #rustlang, I'm zipping two arrays to get an iter of tuples, but it's coming out as (&i32,&i32) and I really want (usize,usize) so I can use those as array indexes. Is there a way to do this without explicitly doing "myarr[*x as usize][*y as usize]" ?
It should say that, please file a bug! Copy is *always* a memcpy of the exact bits of the thing you’re copying; a “shallow” copy
-
-
Since Copy requires Clone I thought it was using the Clone implementation. Good to know!
-
No problem! It’s the other way around; since Clone is more complex, if you’re Copy, then Clone must exist and be equivalent to it. You can be Clone and not Copy but not Copy and not Clone :)
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.