Add Align::End for end-based alignment
For use cases that want to reverse the alignment of RTL lines, this avoids needing to check the RTL status of every line manually. This is a breaking change.
This commit is contained in:
parent
7d50d17369
commit
aa1b37aede
2 changed files with 3 additions and 0 deletions
|
|
@ -120,6 +120,7 @@ pub enum Align {
|
|||
Right,
|
||||
Center,
|
||||
Justified,
|
||||
End,
|
||||
}
|
||||
|
||||
impl Display for Align {
|
||||
|
|
@ -129,6 +130,7 @@ impl Display for Align {
|
|||
Self::Right => write!(f, "Right"),
|
||||
Self::Center => write!(f, "Center"),
|
||||
Self::Justified => write!(f, "Justified"),
|
||||
Self::End => write!(f, "End"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue