diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-11-22 20:15:00 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-11-22 20:15:00 +0100 |
| commit | 6ff60bc3688d8ae2caa3ea18bc23963d25ab5daa (patch) | |
| tree | 51f4abdee9bfdda98f8d865d45a30c94556d004b /src/layout/mod.rs | |
| parent | 4ab7ec6a9a1159bdf1e22eccb56d6d827aaf5b23 (diff) | |
Fix secondary non-origin alignment 🚧
Diffstat (limited to 'src/layout/mod.rs')
| -rw-r--r-- | src/layout/mod.rs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs index e78e6067..2e643295 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -308,7 +308,17 @@ pub enum Alignment { } #[derive(Debug, Copy, Clone, PartialEq)] -pub enum SpaceState { +pub enum SpaceKind { + /// Soft spaces are eaten up by hard spaces before or after them. + Soft, + /// Independent do not eat up soft spaces and are not eaten up by hard spaces. + Independent, + /// Hard spaces eat up soft spaces before or after them. + Hard, +} + +#[derive(Debug, Copy, Clone, PartialEq)] +enum SpaceState { Soft(Size), Forbidden, Allowed, |
