[][src]Struct cli_grid::GridBuilder

pub struct GridBuilder { /* fields omitted */ }

Builder for the Grid type.

Implementations

impl GridBuilder[src]

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

Builds a Grid from a GridBuilder.

pub fn default_colspan(self, default_colspan: 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]

Width of each column in the grid in number of chars.

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

Width of each padding space in the grid in number of chars.

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.