summaryrefslogtreecommitdiff
path: root/src/layout/stack.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-09-10 15:09:56 +0200
committerLaurenz <laurmaedje@gmail.com>2021-09-10 15:10:35 +0200
commit18190f377a556ae5d5bb855044a95ecea071432f (patch)
tree00dc34d14d8daa0911dcf152a51cdf3e153aebde /src/layout/stack.rs
parentb0b4607725d55cc99c13986e14294e0da3e56e08 (diff)
Reimplement `Debug` for layout nodes
Diffstat (limited to 'src/layout/stack.rs')
-rw-r--r--src/layout/stack.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/layout/stack.rs b/src/layout/stack.rs
index 211c8a7e..4afe9c64 100644
--- a/src/layout/stack.rs
+++ b/src/layout/stack.rs
@@ -1,6 +1,7 @@
use super::*;
/// A node that stacks its children.
+#[derive(Debug)]
#[cfg_attr(feature = "layout-cache", derive(Hash))]
pub struct StackNode {
/// The inline and block directions of this stack.
@@ -13,6 +14,7 @@ pub struct StackNode {
}
/// A child of a stack node.
+#[derive(Debug)]
#[cfg_attr(feature = "layout-cache", derive(Hash))]
pub enum StackChild {
/// Spacing between other nodes.