pub struct TableColumn<H> { /* private fields */ }Expand description
A type used for the construction of columns in a
TableView.
Implementations§
Source§impl<H: Copy + Clone + 'static> TableColumn<H>
impl<H: Copy + Clone + 'static> TableColumn<H>
Sourcepub fn align(self, alignment: HAlign) -> Self
pub fn align(self, alignment: HAlign) -> Self
Sets the horizontal text alignment of the column.
Sourcepub fn width(self, width: usize) -> Self
pub fn width(self, width: usize) -> Self
Sets how many characters of width this column will try to occupy.
Sourcepub fn width_percent(self, width: usize) -> Self
pub fn width_percent(self, width: usize) -> Self
Sets what percentage of the width of the entire table this column will try to occupy.
Auto Trait Implementations§
impl<H> Freeze for TableColumn<H>where
H: Freeze,
impl<H> RefUnwindSafe for TableColumn<H>where
H: RefUnwindSafe,
impl<H> Send for TableColumn<H>where
H: Send,
impl<H> Sync for TableColumn<H>where
H: Sync,
impl<H> Unpin for TableColumn<H>where
H: Unpin,
impl<H> UnwindSafe for TableColumn<H>where
H: UnwindSafe,
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