Closed NightEule5 closed 5 months ago
I would like to generate a struct or enum which inherits the generic parameters of the target type:
#[derive(MyDerive)] struct Struct<'a, T> { // ... } #[derive(MyDerive)] enum Enum<'a, T> { // ... } // generates: struct OtherStruct<'a, T> { // ... } enum OtherEnum<'a, T> { // ... }
But currently there is no way to add generic parameters to the generated types.
I would like to generate a struct or enum which inherits the generic parameters of the target type:
But currently there is no way to add generic parameters to the generated types.