[][src]Struct cli_grid::Grid

pub struct Grid {
    pub default_options: Options,
    pub column_width: Option<usize>,
    pub padding_size: Option<usize>,
    pub rows: Vec<Row>,
}

Data type for crating a Grid.

Fields

default_options: Options

These options will be used if the equivalent is not provided by the underlying Row type.

column_width: Option<usize>

Width in chars for each column of the Grid.

padding_size: Option<usize>

Number of char spaces for each padding space between grid columns.

rows: Vec<Row>

Collection of rows that this Grid contains.

Implementations

impl Grid[src]

pub fn new(rows: Vec<Row>) -> Self[src]

Creates a Grid bye specifying its rows.

pub fn builder(rows: Vec<Row>) -> GridBuilder[src]

Creates a GridBuilder initiated with rows.

Trait Implementations

impl Display for Grid[src]

Auto Trait Implementations

impl RefUnwindSafe for Grid

impl Send for Grid

impl Sync for Grid

impl Unpin for Grid

impl UnwindSafe for Grid

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> ToString for T where
    T: Display + ?Sized
[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.