[][src]Struct cli_grid::CellBuilder

pub struct CellBuilder { /* fields omitted */ }

Builder for the Cell type.

Implementations

impl CellBuilder[src]

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

Builds a Cell from a CellBuilder.

pub fn content(self, content: String) -> Self[src]

Sets the content of the cell. It can be a multi line string or even a nested Grid. To build the final Cell type, build method must be called.

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

Sets the column span of the cell To build the final Cell type, build method must be called.

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

Sets the horizontal alignment of the cell. To build the final Cell type, build method must be called.

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

Sets the vertical alignment of the cell. To build the final Cell type, build method must be called.

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

Sets the blank char as the cell padding space char. To build the final Cell type, build method must be called.

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.