[][src]Struct cursive_table_view::TableColumn

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]

pub fn ordering(self, order: Ordering) -> Self[src]

Sets the default ordering of the column.

pub fn align(self, alignment: HAlign) -> Self[src]

Sets the horizontal text alignment of the column.

pub fn width(self, width: usize) -> Self[src]

Sets how many characters of width this column will try to occupy.

pub fn width_percent(self, width: usize) -> Self[src]

Sets what percentage of the width of the entire table this column will try to occupy.

Auto Trait Implementations

impl<H> Send for TableColumn<H> where
    H: Send

impl<H> Sync for TableColumn<H> where
    H: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> With for T[src]

fn with<F>(self, f: F) -> Self where
    F: FnOnce(&mut Self), 
[src]

Calls the given closure on self.

fn try_with<E, F>(self, f: F) -> Result<Self, E> where
    F: FnOnce(&mut Self) -> Result<(), E>, 
[src]

Calls the given closure on self.

fn with_if<F>(self, condition: bool, f: F) -> Self where
    F: FnOnce(&mut Self), 
[src]

Calls the given closure if condition == true.

impl<T> Erased for T