pub enum Align {
Left,
Center,
Right,
}Expand description
Specifies the alignment of formatted text within a field width.
The Align enum determines how text should be aligned when a width is specified
in a format specification. It controls whether the text is left-aligned, right-aligned,
or centered within the allocated space.
Variants§
Left
Left-align the text within the field.
When this alignment is used, text is placed at the beginning of the field, with any padding added to the right.
Center
Center the text within the field.
When this alignment is used, text is placed in the middle of the field, with padding distributed equally on both sides when possible.
Right
Right-align the text within the field.
When this alignment is used, text is placed at the end of the field, with any padding added to the left.
Trait Implementations§
impl Copy for Align
Auto Trait Implementations§
impl Freeze for Align
impl RefUnwindSafe for Align
impl Send for Align
impl Sync for Align
impl Unpin for Align
impl UnwindSafe for Align
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