pub enum Alignment {
Left,
Center,
Right,
LeftEndTab,
LeftFwf,
}Expand description
Alignment represents how a TabWriter should align text within its cell.
Variants§
Left
Text should be aligned with the left edge of the cell
Center
Text should be centered within the cell
Right
Text should be aligned with the right edge of the cell
LeftEndTab
Like Left, but the last whitespace is a tab This produces a valid TSV file
LeftFwf
Like Left, but adds a comment line at the top that comma-delimited enumerates the starting position of each column (Fixed Width Format). Positions are 1-indexed.
Trait Implementations§
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