Skip to content

Conversation

@MrSubidubi
Copy link

This PR adds support for speficying generics for structs in generate_delegates. With this, specifying generics becomes possible like this:

#[setters(generate_delegates(ty = "Job<T>", generics = "<T: JobType>", field = "value"))

Importantly, this does not change anything for structs without generics, as the default empty string will then just be parsed to Generics::default().


I am not entirely sure whether there might be a better approach to tackle this issue, but looking into this, I was unable to find a better way to pass and parse these.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant