pub struct TableCell {
pub colspan: u32,
pub rowspan: u32,
pub children: Vec<Node>,
pub fill: Option<PropertyValue>,
pub border: Option<PropertyValue>,
pub border_width: Option<PropertyValue>,
pub h_align: Option<String>,
pub v_align: Option<String>,
pub source_span: Option<Span>,
pub unknown_props: BTreeMap<String, UnknownProperty>,
}Expand description
A single cell in a TableRow (a cell child).
A cell holds ordinary child nodes (text/rect/image/…) — the same node model
used by frame/group children — and may span multiple columns/rows via
colspan/rowspan (HTML-table cell flow).
Fields§
§colspan: u32Number of columns this cell spans (default 1).
rowspan: u32Number of rows this cell spans (default 1).
children: Vec<Node>Cell content — ordinary nodes in source order.
fill: Option<PropertyValue>Per-cell background fill override (token-required color).
border: Option<PropertyValue>Per-cell border color override (token-required color).
border_width: Option<PropertyValue>Per-cell border width override (token/dimension).
h_align: Option<String>Per-cell horizontal alignment override (start/center/end).
v_align: Option<String>Per-cell vertical alignment override (top/middle/bottom).
source_span: Option<Span>Source declaration span, when available.
unknown_props: BTreeMap<String, UnknownProperty>Unknown properties preserved for forward-compat.
Trait Implementations§
impl StructuralPartialEq for TableCell
Auto Trait Implementations§
impl Freeze for TableCell
impl RefUnwindSafe for TableCell
impl Send for TableCell
impl Sync for TableCell
impl Unpin for TableCell
impl UnsafeUnpin for TableCell
impl UnwindSafe for TableCell
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more