Struct term_table::cell::Cell[][src]

pub struct Cell<'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> Cell<'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

Important traits for Vec<u8>

Wraps the cell's content to the provided width.

New line characters are taken into account.

Trait Implementations

impl<'data> Display for Cell<'data>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'data> Send for Cell<'data>

impl<'data> Sync for Cell<'data>