I have been trying to write some Rust code for a couple of days now, and to my surprise, I noticed Rust does not allow for generic values (please inform me about correct terminology):
struct A<T, S>([T; S]);
This makes implementing wrappers around fixed arrays really difficult. I cannot implement
Clone is a pain, just because rust doesn’t support these generics. I have to write an entire macro to pretty much generate my program, for a generic size of an array.
Why is it that Rust doesn’t allow for this? What is holding Rust back? Is there an RFC or any other discussions?