Struct cursive_table_view::TableColumn
[−]
[src]
pub struct TableColumn<H: Copy + Clone + 'static> { /* fields omitted */ }
A type used for the construction of columns in a
TableView
.
Methods
impl<H: Copy + Clone + 'static> TableColumn<H>
[src]
fn ordering(self, order: Ordering) -> Self
Sets the default ordering of the column.
fn align(self, alignment: HAlign) -> Self
Sets the horizontal text alignment of the column.
fn width(self, width: usize) -> Self
Sets how many characters of width this column will try to occupy.
fn width_percent(self, width: usize) -> Self
Sets what percentage of the width of the entire table this column will try to occupy.