Cell

Trait 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§