pub enum TextAlign {
Start,
Center,
End,
}Expand description
Horizontal alignment applied by a host text layout engine.
Variants§
Start
Align each line to its paragraph’s leading edge: the left of a left-to-right paragraph, the right of a right-to-left one.
Center
Center each line in the requested layout width.
End
Align each line to its paragraph’s trailing edge.
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