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

feat: add MergeFrom trait to conflate #34

Merged
merged 3 commits into from
Nov 19, 2024
Merged

Conversation

simonsan
Copy link
Contributor

This adds a MergeFrom trait to the conflate crate.
This trait is used to merge two values of the same type,
and creates a new value that is the result of the merge.

The MergeFrom trait is implemented for all types that implement the Merge trait.

Signed-off-by: simonsan [email protected]

This adds a `MergeFrom` trait to the `conflate` crate.
This trait is used to merge two values of the same type,
and creates a new value that is the result of the merge.

The `MergeFrom` trait is implemented for all types that implement the `Merge` trait.

Signed-off-by: simonsan <[email protected]>
@simonsan simonsan merged commit f7d21b2 into main Nov 19, 2024
23 checks passed
@simonsan simonsan deleted the feat/trait/merge_from branch November 19, 2024 23:45
simonsan pushed a commit that referenced this pull request Nov 20, 2024
## 🤖 New release
* `conflate`: 0.3.2 -> 0.3.3 (✓ API compatible changes)

<details><summary><i><b>Changelog</b></i></summary><p>

## `conflate`
<blockquote>

##
[0.3.3](conflate-v0.3.2...conflate-v0.3.3)
- 2024-11-20

### Added

- enhance MergeFrom trait with detailed documentation and add
MergePrecedence trait for prioritized merging
- add MergeFrom trait to conflate
([#34](#34))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/MarcoIeni/release-plz/).

Co-authored-by: rustic-release-plz[bot] <182542030+rustic-release-plz[bot]@users.noreply.github.com>
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