pub enum Alignment {
Left,
Right,
Middle,
MiddleRight,
}Expand description
An alignment tells the padder where to put the spaces.
Variants§
Left
Text on the left, spaces on the right.
Right
Text on the right, spaces on the left.
Middle
Text in the middle, spaces around it, but shifted to the left if it can’t be exactly central.
MiddleRight
Text in the middle, spaces around it, but shifted to the right if it can’t be exactly central.
Trait Implementations§
impl Copy for Alignment
impl Eq for Alignment
impl StructuralPartialEq for Alignment
Auto Trait Implementations§
impl Freeze for Alignment
impl RefUnwindSafe for Alignment
impl Send for Alignment
impl Sync for Alignment
impl Unpin for Alignment
impl UnwindSafe for Alignment
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