pub trait Cell {
    // Required methods
    fn text(&self) -> &str;
    fn line(&self, line: usize) -> &str;
    fn count_lines(&self) -> usize;
    fn width(&self) -> usize;
    fn line_width(&self, line: usize) -> usize;
}
Expand description

Cell implementation which can be used with VecRecords.

Required Methods§

source

fn text(&self) -> &str

Gets a text.

source

fn line(&self, line: usize) -> &str

Gets a line by index.

source

fn count_lines(&self) -> usize

Returns a number of lines cell has.

source

fn width(&self) -> usize

Returns a width of cell.

source

fn line_width(&self, line: usize) -> usize

Returns a width of cell line.

Implementors§

source§

impl<S> Cell for CellInfo<S>
where S: AsRef<str>,