Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GenStruct and GenEnum are missing methods to add generic parameters to the struct/enum #83

Closed
NightEule5 opened this issue Jun 9, 2024 · 0 comments · Fixed by #84
Closed
Labels
enhancement New feature or request good first issue Good for newcomers not-stale

Comments

@NightEule5
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers not-stale
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants