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: derive Debug and PartialEq for tree types #697

Merged
merged 1 commit into from
Jul 28, 2024

Conversation

joshka
Copy link
Contributor

@joshka joshka commented Jul 28, 2024

This makes it possible to store a TaffyTree in a struct that derives
the Debug and Clone traits

Objective

I wanted to create a struct that stored a TaffyTree, but was unable to as the struct derived Debug and Clone.
Rather than switch to a manual implementation, it makes sense to derive Debug in Taffy.
Additionally several types were missing PartialEq implementations.

Context

Feedback wanted

This makes it possible to store a TaffyTree in a struct that derives
the Debug trait
@alice-i-cecile alice-i-cecile merged commit 5e4dcf1 into DioxusLabs:main Jul 28, 2024
19 checks passed
@joshka joshka deleted the jm/traits branch July 28, 2024 19:29
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.

2 participants