pub enum TextAlign {
Start,
Center,
End,
Justify,
}Expand description
Where each line of text sits in the text’s content box. Text one line long and sized to itself looks the same whichever is set.
Variants§
Start
At the start: the left for left-to-right text. The default.
Center
In the middle.
End
At the end: the right for left-to-right text.
Justify
Stretched to both edges by widening the spaces, except a paragraph’s last line, which sits at the start.
Trait Implementations§
impl Copy for TextAlign
impl Eq for TextAlign
impl StructuralPartialEq for TextAlign
Auto Trait Implementations§
impl Forget for TextAlign
impl Freeze for TextAlign
impl Move 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