[][src]Struct term_table::table_cell::TableCell

pub struct TableCell<'data> {
    pub data: Cow<'data, str>,
    pub col_span: usize,
    pub alignment: Alignment,
    pub pad_content: bool,
}

A table cell containing some str data.

A cell may span multiple columns by setting the value of col_span.

pad_content will add a space to either side of the cell's content.AsRef

Fields

Methods

impl<'data> TableCell<'data>
[src]

Calculates the width of the cell.

New line characters are taken into account during the calculation.

The width of the cell's content divided by its col_span value.

The minium width required to display the cell properly

Wraps the cell's content to the provided width.

New line characters are taken into account.

Trait Implementations

impl<'data, T> From<T> for TableCell<'data> where
    T: ToString
[src]

Auto Trait Implementations

impl<'data> Send for TableCell<'data>

impl<'data> Sync for TableCell<'data>

Blanket Implementations

impl<T> From for T
[src]

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

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

🔬 This is a nightly-only experimental API. (try_from)

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, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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