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

Clean up infrastructure for merging partial objects #1337

Merged
merged 20 commits into from
Nov 11, 2022
Merged

Clean up infrastructure for merging partial objects #1337

merged 20 commits into from
Nov 11, 2022

Conversation

hannobraun
Copy link
Owner

Add a MergeWith trait and implement it for all partial objects and various other types, making the merge infrastructure more regular and easier to use. I think leaning more heavily on merging might help with #1249, so this is good.

This also leaves the implementations of MergeWith for all partial object types quite formulaic, so it's possible to make those deriveable via a proc macro as a next step.

@hannobraun hannobraun enabled auto-merge November 11, 2022 12:52
@hannobraun hannobraun merged commit b64c84b into main Nov 11, 2022
@hannobraun hannobraun deleted the merge branch November 11, 2022 12:58
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