summaryrefslogtreecommitdiff
path: root/src/layout/mod.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/mod.rs
parentc216a4fc26c72938ddad60bc5fe4fa9e45263b30 (diff)
Rename LayoutItem to Layouted ✏
Diffstat (limited to 'src/layout/mod.rs')
-rw-r--r--src/layout/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs
index 2368c441..d5ab24e7 100644
--- a/src/layout/mod.rs
+++ b/src/layout/mod.rs
@@ -55,14 +55,14 @@ pub trait Layout {
&self,
ctx: &mut LayoutContext,
constraints: LayoutConstraints,
- ) -> Vec<LayoutItem>;
+ ) -> Vec<Layouted>;
}
/// An item that is produced by [layouting] a node.
///
/// [layouting]: trait.Layout.html#method.layout
#[derive(Debug, Clone, PartialEq)]
-pub enum LayoutItem {
+pub enum Layouted {
/// Spacing that should be added to the parent.
Spacing(Length),
/// A box that should be aligned in the parent.