pub enum HorizontalAlignment {
Left,
Center,
Right,
}Expand description
The horizontal alignment of a column’s content.
Specified by a horizontal alignment operator at the start of a
column specifier: the less-than sign (<) for
Left, the greater-than sign (>) for
Right, and the caret (^) for Center.
The default is Left.
Variants§
Left
Content is aligned to the left side of the column (the < operator).
This is the default horizontal alignment.
Center
Content is centered horizontally in the column (the ^ operator).
Right
Content is aligned to the right side of the column (the > operator).
Trait Implementations§
Source§impl Clone for HorizontalAlignment
impl Clone for HorizontalAlignment
Source§fn clone(&self) -> HorizontalAlignment
fn clone(&self) -> HorizontalAlignment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HorizontalAlignment
Source§impl Debug for HorizontalAlignment
impl Debug for HorizontalAlignment
impl Eq for HorizontalAlignment
Source§impl PartialEq for HorizontalAlignment
impl PartialEq for HorizontalAlignment
Source§fn eq(&self, other: &HorizontalAlignment) -> bool
fn eq(&self, other: &HorizontalAlignment) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HorizontalAlignment
Auto Trait Implementations§
impl Freeze for HorizontalAlignment
impl RefUnwindSafe for HorizontalAlignment
impl Send for HorizontalAlignment
impl Sync for HorizontalAlignment
impl Unpin for HorizontalAlignment
impl UnsafeUnpin for HorizontalAlignment
impl UnwindSafe for HorizontalAlignment
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