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

impl_singleton: support _ and impl Trait in field types #359

Merged
merged 13 commits into from
Oct 4, 2022
Merged

Conversation

dhardy
Copy link
Collaborator

@dhardy dhardy commented Oct 3, 2022

This replaces the prior for<X> Foo<X> style of inline generics.

This macro is almost independent of KAS/widget-specifics now; the only exception is that a field with type _ (or omitted type) and attribute #[widget] has bound ::kas::Widget assumed. This is quite important to examples. Still, it should be possible to publish a variant without this feature to impl-tools.

@dhardy dhardy merged commit 935c7d1 into master Oct 4, 2022
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