I've started implementing traits for fixed-length vectors with a few macros:
https://gist.github.com/jfager/5936197 I don't have Clone yet, but it should be easy to add. On Saturday, July 6, 2013, Patrick Walton wrote: > On 7/5/13 10:42 PM, Ashish Myles wrote: > >> And an additional question. >> 3. What is the rationale in having both Copy and Clone? Can one >> provide an exhaustive list for where one would want to use Copy >> instead of Clone/DeepClone? I tried to use clone everywhere, but I >> needed <T : Copy + Zero> to be able to write, for example, >> [Zero::zero(),.. 3] as in the following code >> > > I'm busy removing Copy from the language right now. > > Regarding your initial question, we need some implementations of Clone for > various standard vector sizes in the standard library. > > Patrick > ______________________________**_________________ > Rust-dev mailing list > [email protected] > https://mail.mozilla.org/**listinfo/rust-dev<https://mail.mozilla.org/listinfo/rust-dev> >
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
