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

make_widget → impl_singleton #317

Merged
merged 10 commits into from
May 11, 2022
Merged

make_widget → impl_singleton #317

merged 10 commits into from
May 11, 2022

Conversation

dhardy
Copy link
Collaborator

@dhardy dhardy commented May 11, 2022

What was make_widget is made more generic, no longer being special to widgets (aside from a rule for #[widget] fields which adds the Widget trait bound):

  • do not add widget_core!() field or derive Debug automatically
  • construct values using Default::default() if omitted
  • make locally-declared type parameter names unique
  • rename to impl_singleton
  • support unit and tuple structs

@dhardy dhardy merged commit 335beea into master May 11, 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.

None yet

1 participant