diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-11-22 15:54:39 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-11-22 15:54:39 +0100 |
| commit | 4ab7ec6a9a1159bdf1e22eccb56d6d827aaf5b23 (patch) | |
| tree | 2ed7392518da7a2d3e9895c2d5d43e095a452c90 /src/layout | |
| parent | ebff8eb038706404cb4601cf6853675319663e3f (diff) | |
Specify both axis with align function ➕
Diffstat (limited to 'src/layout')
| -rw-r--r-- | src/layout/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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), |
