pub enum TextAlign {
Leading,
Center,
Trailing,
}Expand description
How a wrapped label’s lines sit within its width (LabelProps::align).
There is no Justified variant because no toolkit in Day’s set agrees on how to justify
the last line, and the ones that can do it at all need a paragraph style the others have
no equivalent for.
Variants§
Leading
Left in a left-to-right locale, right in an RTL one (docs/localization.md).
Center
Trailing
Trait Implementations§
impl Copy for TextAlign
impl Eq for TextAlign
impl StructuralPartialEq for TextAlign
Auto Trait Implementations§
impl Freeze for TextAlign
impl RefUnwindSafe for TextAlign
impl Send for TextAlign
impl Sync for TextAlign
impl Unpin for TextAlign
impl UnsafeUnpin for TextAlign
impl UnwindSafe for TextAlign
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more