From afe3123dacfe02ce1725e4055005fc0cc350ddf0 Mon Sep 17 00:00:00 2001 From: Alex Parrill Date: Mon, 13 Jul 2020 00:17:52 -0400 Subject: [PATCH] Derive Clone+Copy for Align, HAlign, VAlign (#469) Fixes #468 --- cursive-core/src/align.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cursive-core/src/align.rs b/cursive-core/src/align.rs index 0977679..a34eb9a 100644 --- a/cursive-core/src/align.rs +++ b/cursive-core/src/align.rs @@ -1,7 +1,7 @@ //! Tools to control view alignment. /// Specifies the alignment along both horizontal and vertical directions. -#[derive(Debug)] +#[derive(Debug, Clone, Copy)] pub struct Align { /// Horizontal alignment policy pub h: HAlign, @@ -62,7 +62,7 @@ impl Align { } /// Horizontal alignment -#[derive(Debug)] +#[derive(Debug, Clone, Copy)] pub enum HAlign { /// Place the element to the left of available space Left, @@ -73,7 +73,7 @@ pub enum HAlign { } /// Vertical alignment -#[derive(Debug)] +#[derive(Debug, Clone, Copy)] pub enum VAlign { /// Place the element at the top of available space Top,