Trait text_grid::CellSource

source ·
pub trait CellSource {
    fn fmt(&self, s: &mut String);

    fn style(&self) -> CellStyle { ... }
    fn default_style() -> CellStyle { ... }
}
Expand description

A data structure that can be formatted into cell.

Normally, cell() or [macro@cell] is used to create a value that implements CellSource.

Required Methods§

Output the cell text to given buffer.

Provided Methods§

Return cell’s style.

Return cell’s default style that associated with Self type.

Implementations on Foreign Types§

Implementors§