pub enum LayoutWidth {
Length(u16),
Columns,
Area,
}Expand description
Width for the table-layout.
Variants§
Length(u16)
Fixed width. Columns are layout for this size.
Columns
Width is the sum of the columns. If the width is larger than the area, horizontal scrolling is used.
Note: Constraint::Fill is useless for this. Such columns will assume a width of 10.
Area
Fit the columns to the table-area.
Trait Implementations§
Source§impl Debug for LayoutWidth
impl Debug for LayoutWidth
Source§impl Default for LayoutWidth
impl Default for LayoutWidth
Source§fn default() -> LayoutWidth
fn default() -> LayoutWidth
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Forget for LayoutWidth
impl Freeze for LayoutWidth
impl RefUnwindSafe for LayoutWidth
impl Send for LayoutWidth
impl Sync for LayoutWidth
impl Unpin for LayoutWidth
impl UnsafeUnpin for LayoutWidth
impl UnwindSafe for LayoutWidth
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more