mcarton / rust-derivative

A set of alternative `derive` attributes for Rust
Apache License 2.0
415 stars 46 forks source link

Allow derivative for specialized types. #97

Open entropylost opened 3 years ago

entropylost commented 3 years ago

Eg.

struct Foo<T>(T);
impl Default for Foo<u32> {
  //...
}

This would be similar to the bound, but changing the base type that the derive is on to be specialized.