pub enum Align {
Box,
Content(u16),
Full,
}Expand description
Horizontal alignment strategy for a component within the terminal.
Variants§
Box
Centered using the pre-computed box geometry (column + inner width).
Content(u16)
Centered for the given content width within the terminal.
Full
Full terminal width, column 0 — component handles its own centering.
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