pub trait Cell: Display {
type Truncated: Cell;
type Padded: Cell;
// Required methods
fn width(&self) -> usize;
fn truncate(&self, width: usize, delim: &str) -> Self::Truncated;
fn pad(&self, width: usize) -> Self::Padded;
// Provided method
fn background(&self) -> Color { ... }
}Expand description
Text that can be displayed on the terminal, measured, truncated and padded.
Required Associated Types§
Required Methods§
Provided Methods§
Sourcefn background(&self) -> Color
fn background(&self) -> Color
Background color of cell.