pub enum TextAlign {
Left,
Center,
Right,
}Expand description
Horizontal text alignment options.
Affects how each line of text is positioned within the available width.
Variantsยง
Left
Align to the left edge (default for most terminals).
Center
Centered horizontally.
Right
Align to the right edge.
Trait Implementationsยง
Auto Trait Implementationsยง
impl Freeze for TextAlign
impl RefUnwindSafe for TextAlign
impl Send for TextAlign
impl Sync for TextAlign
impl Unpin 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