pub struct Cell<T> { /* private fields */ }
Expand description
Implementation of CellSource
that can specify styles.
Implementations§
source§impl<T: CellSource> Cell<T>
impl<T: CellSource> Cell<T>
sourcepub fn new(source: T) -> Self
pub fn new(source: T) -> Self
Create a new Cell
with specified CellSource
and empty style.
sourcepub fn with_base_style(self, style: CellStyle) -> Self
pub fn with_base_style(self, style: CellStyle) -> Self
Return the cell with an empty style replaced by the specified style.
Judgment as to whether the style is empty or not is done for each individual element.