Trait tui_term::widget::Cell

source ·
pub trait Cell {
    // Required methods
    fn has_contents(&self) -> bool;
    fn apply(&self, cell: &mut Cell);
}
Expand description

A trait for representing a single cell on a screen.

Required Methods§

source

fn has_contents(&self) -> bool

Whether the cell has any contents that could be rendered to the screen.

source

fn apply(&self, cell: &mut Cell)

Apply the contents and styling of this cell to the provided buffer cell.

Implementations on Foreign Types§

source§

impl Cell for Cell

source§

fn has_contents(&self) -> bool

source§

fn apply(&self, cell: &mut Cell)

Implementors§