From 4ab7ec6a9a1159bdf1e22eccb56d6d827aaf5b23 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 22 Nov 2019 15:54:39 +0100 Subject: =?UTF-8?q?Specify=20both=20axis=20with=20align=20function=20?= =?UTF-8?q?=E2=9E=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/layout') diff --git a/src/layout/mod.rs b/src/layout/mod.rs index 04039d07..e78e6067 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -324,6 +324,8 @@ impl SpaceState { pub enum LayoutError { /// An action is unallowed in the active context. Unallowed(&'static str), + /// A specifier or operation is invalid for the given axis. + UnalignedAxis(&'static str), /// There is not enough space to add an item. NotEnoughSpace(&'static str), /// There was no suitable font for the given character. @@ -339,6 +341,7 @@ error_type! { err: LayoutError, show: f => match err { LayoutError::Unallowed(desc) => write!(f, "unallowed: {}", desc), + LayoutError::UnalignedAxis(desc) => write!(f, "unaligned axis: {}", desc), LayoutError::NotEnoughSpace(desc) => write!(f, "not enough space: {}", desc), LayoutError::NoSuitableFont(c) => write!(f, "no suitable font for '{}'", c), LayoutError::Font(err) => write!(f, "font error: {}", err), -- cgit v1.2.3