pub trait Cell: AsRef<str> {
    fn get_line(&self, i: usize) -> &str;
    fn count_lines(&self) -> usize;
    fn width<W>(&self, width_ctrl: W) -> usize
    where
        W: WidthFunc
; fn line_width<W>(&self, i: usize, width_ctrl: W) -> usize
    where
        W: WidthFunc
; fn fmt_prefix(&self, _: &mut Formatter<'_>) -> Result { ... } fn fmt_suffix(&self, _: &mut Formatter<'_>) -> Result { ... } }
Expand description

Cell imlementation which can be used with VecRecords.

Required Methods

Gets a line by index.

Returns a number of lines cell has.

Returns a width of cell.

Returns a width of cell line.

Provided Methods

Prints a prefix.

It might be usefull when used for ANSI prefix.

Prints a suffix.

It might be usefull when used for ANSI suffix.

Implementors