summaryrefslogtreecommitdiff
path: root/src/layout/mod.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/mod.rs
parentb0b4607725d55cc99c13986e14294e0da3e56e08 (diff)
Reimplement `Debug` for layout nodes
Diffstat (limited to 'src/layout/mod.rs')
-rw-r--r--src/layout/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs
index 96bd7e7e..1ca9001d 100644
--- a/src/layout/mod.rs
+++ b/src/layout/mod.rs
@@ -30,6 +30,7 @@ pub use shaping::*;
pub use stack::*;
pub use tree::*;
+use std::fmt::Debug;
use std::rc::Rc;
use crate::font::FontStore;
@@ -73,7 +74,7 @@ impl<'a> LayoutContext<'a> {
}
/// Layout a node.
-pub trait Layout {
+pub trait Layout: Debug {
/// Layout the node into the given regions.
fn layout(
&self,