summaryrefslogtreecommitdiff
path: root/src/layout/par.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/par.rs
parentb0b4607725d55cc99c13986e14294e0da3e56e08 (diff)
Reimplement `Debug` for layout nodes
Diffstat (limited to 'src/layout/par.rs')
-rw-r--r--src/layout/par.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/layout/par.rs b/src/layout/par.rs
index d7fbde16..dc2ce0ef 100644
--- a/src/layout/par.rs
+++ b/src/layout/par.rs
@@ -10,6 +10,7 @@ use crate::util::{EcoString, RangeExt, SliceExt};
type Range = std::ops::Range<usize>;
/// A node that arranges its children into a paragraph.
+#[derive(Debug)]
#[cfg_attr(feature = "layout-cache", derive(Hash))]
pub struct ParNode {
/// The inline direction of this paragraph.
@@ -21,6 +22,7 @@ pub struct ParNode {
}
/// A child of a paragraph node.
+#[derive(Debug)]
#[cfg_attr(feature = "layout-cache", derive(Hash))]
pub enum ParChild {
/// Spacing between other nodes.