tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 583HTML 275Markdown 8TOML 41586 Definitions

Impl debug, clone for Cache (#688)

6fb38bfe0939460c3e51917cb0c460dfe47b4d5c · by Nico Burns · (2 years ago) · parent f88aa22c1 · browse the tree at this commit

Semantic delta

No definition changed: this change is text, documentation or data.

1 files · +1 −0

diff --git a/src/tree/cache.rs b/src/tree/cache.rs
index 43c18b84d..3f3bb8cfb 100644
--- a/src/tree/cache.rs
+++ b/src/tree/cache.rs
@@ -19,6 +19,7 @@ pub(crate) struct CacheEntry<T> {
 }
 
 /// A cache for caching the results of a sizing a Grid Item or Flexbox Item
+#[derive(Debug, Clone)]
 #[cfg_attr(feature = "serde", derive(Serialize))]
 pub struct Cache {
     /// The cache entry for the node's final layout