summaryrefslogtreecommitdiff
path: root/src/layout/par.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-10-11 13:08:27 +0200
committerLaurenz <laurmaedje@gmail.com>2020-10-11 13:08:27 +0200
commitf04ad0ffa5f34bb7fd97e5c94c7547f96904220c (patch)
tree8fb4ebbcf1a24f08ded0f3fea1afe9f9bcdf6697 /src/layout/par.rs
parentc216a4fc26c72938ddad60bc5fe4fa9e45263b30 (diff)
Rename LayoutItem to Layouted ✏
Diffstat (limited to 'src/layout/par.rs')
-rw-r--r--src/layout/par.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/layout/par.rs b/src/layout/par.rs
index 2a139760..52086cc9 100644
--- a/src/layout/par.rs
+++ b/src/layout/par.rs
@@ -20,7 +20,7 @@ impl Layout for Par {
&self,
ctx: &mut LayoutContext,
constraints: LayoutConstraints,
- ) -> Vec<LayoutItem> {
+ ) -> Vec<Layouted> {
let mut layouter = LineLayouter::new(LineContext {
dirs: self.dirs,
spaces: constraints.spaces,
@@ -39,8 +39,8 @@ impl Layout for Par {
for item in items {
match item {
- LayoutItem::Spacing(amount) => layouter.push_spacing(amount),
- LayoutItem::Box(boxed, aligns) => layouter.push_box(boxed, aligns),
+ Layouted::Spacing(amount) => layouter.push_spacing(amount),
+ Layouted::Box(boxed, aligns) => layouter.push_box(boxed, aligns),
}
}
}
@@ -48,7 +48,7 @@ impl Layout for Par {
layouter
.finish()
.into_iter()
- .map(|boxed| LayoutItem::Box(boxed, self.aligns))
+ .map(|boxed| Layouted::Box(boxed, self.aligns))
.collect()
}
}