diff options
Diffstat (limited to 'src/layout/mod.rs')
| -rw-r--r-- | src/layout/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs index bcabf7f3..8c120c6b 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -33,7 +33,7 @@ pub mod prelude { pub type MultiLayout = Vec<Layout>; /// A finished box with content at fixed positions. -#[derive(Debug, Clone)] +#[derive(Debug, Clone, PartialEq)] pub struct Layout { /// The size of the box. pub dimensions: Size2D, @@ -91,7 +91,7 @@ impl Serialize for MultiLayout { pub type LayoutSpaces = SmallVec<[LayoutSpace; 2]>; /// The space into which content is laid out. -#[derive(Debug, Copy, Clone)] +#[derive(Debug, Copy, Clone, PartialEq)] pub struct LayoutSpace { /// The maximum size of the box to layout in. pub dimensions: Size2D, |
