[][src]Struct cli_grid::RowBuilder

pub struct RowBuilder { /* fields omitted */ }

Builder for the Row type.

Implementations

impl RowBuilder[src]

pub fn build(self) -> Row[src]

Builds a Row from a RowBuilder.

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

Sets the default column span for all the cells of the grid. If a cell specifies a column span it will be used instead of the grids default value.

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

Sets the default horizontal alignment for all the cells of the grid. If a cell specifies a horizontal alignment it will be used instead of the grids default value.

pub fn default_v_align(self, default_v_align: VAlign) -> Self[src]

Sets the default vertical alignment for all the cells of the grid. If a cell specifies a vertical alignment it will be used instead of the grids default value.

pub fn default_blank_char(self, default_blank_char: char) -> Self[src]

Sets the default blank char for all the cells of the grid. If a cell specifies a blank char it will be used instead of the grids default value.

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

Sets the width of each column in the Row.

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

Sets the padding size between each column in the Row.

pub fn cells(self, cells: Vec<Cell>) -> Self[src]

Sets the cells collection of the Row.

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.