pub struct TableCell {
pub element: Element,
pub colspan: usize,
pub rowspan: usize,
pub align: Option<Align>,
pub background: Option<Color>,
pub border: Option<Border>,
pub padding: Option<f32>,
}Fields§
§element: Element§colspan: usize§rowspan: usizeHow many rows (including this one) this cell’s box extends down
through. A continuation row (one a rowspan > 1 cell from an
earlier row still covers) simply omits a TableCell for that
column — same convention as HTML <tr>/<td>, not a separate
“placeholder” cell type.
align: Option<Align>§background: Option<Color>Overrides the row’s zebra stripe for this cell only (precedence:
cell beats row beats column — the same order .align() already
follows against TableColumn::align).
border: Option<Border>§padding: Option<f32>Overrides Table::cell_padding for this cell only.
Implementations§
Source§impl TableCell
impl TableCell
pub fn new(element: impl Into<Element>) -> Self
pub fn colspan(self, colspan: usize) -> Self
pub fn rowspan(self, rowspan: usize) -> Self
pub fn align(self, align: Align) -> Self
pub fn background(self, color: Color) -> Self
pub fn border(self, border: Border) -> Self
pub fn padding(self, padding: f32) -> Self
Trait Implementations§
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