pub struct TableCell<'src> { /* private fields */ }Expand description
A single cell in a TableBlock.
Implementations§
Source§impl<'src> TableCell<'src>
impl<'src> TableCell<'src>
Sourcepub fn h_align(&self) -> HorizontalAlignment
pub fn h_align(&self) -> HorizontalAlignment
Returns the horizontal alignment of this cell’s content.
The alignment comes from a horizontal alignment operator (<, >, or
^) on the cell’s specifier, which overrides the column’s alignment. A
cell with no horizontal alignment operator inherits its column’s
h_align.
Sourcepub fn v_align(&self) -> VerticalAlignment
pub fn v_align(&self) -> VerticalAlignment
Returns the vertical alignment of this cell’s content.
The alignment comes from a vertical alignment operator (.<, .>, or
.^) on the cell’s specifier, which overrides the column’s alignment. A
cell with no vertical alignment operator inherits its column’s
v_align.
Sourcepub fn style(&self) -> ColumnStyle
pub fn style(&self) -> ColumnStyle
Returns the style applied to this cell’s content.
The style comes from a style operator in the last position of the cell’s
specifier (a, d, e, h, l, m, or s), which overrides the
column’s style. A cell with no style operator inherits its column’s
style. A header cell is always
Default, because the header row ignores style
operators on both column and cell specifiers.
Sourcepub fn colspan(&self) -> usize
pub fn colspan(&self) -> usize
Returns the number of columns this cell spans.
The span comes from a column span factor (<n>) or block span factor
(<n>.<n>) in front of the span operator (+) on the cell’s specifier.
A cell with no column span factor spans a single column, so the default
is 1.
Sourcepub fn rowspan(&self) -> usize
pub fn rowspan(&self) -> usize
Returns the number of rows this cell spans.
The span comes from a row span factor (.<n>) or block span factor
(<n>.<n>) in front of the span operator (+) on the cell’s specifier.
A cell with no row span factor spans a single row, so the default is
1.
Sourcepub fn content(&self) -> &TableCellContent<'src>
pub fn content(&self) -> &TableCellContent<'src>
Returns the interpreted content of this cell.