diff options
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, |
