DioxusLabs / taffy

A high performance rust-powered UI layout library
https://docs.rs/taffy
Other
2.04k stars 102 forks source link

feat: derive Debug and PartialEq for tree types #697

Closed joshka closed 1 month ago

joshka commented 1 month ago

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