pub enum Align {
Center,
Left,
Right,
}Expand description
Alignment options for any content supporting alignment.
§Examples
use tiny_table::{Align, Table};
let mut table = Table::new();
table.add_section("Team").align(Align::Right);Variants§
Center
Center the content within the available width.
Left
Place the content toward the left side of the available width.
Right
Place the content toward the right side of the available width.
Trait Implementations§
impl Copy for Align
impl Eq for Align
impl StructuralPartialEq 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 UnsafeUnpin 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