pub struct TableCell { /* private fields */ }Expand description
Represents a cell in the table
Implementations§
Source§impl TableCell
impl TableCell
Sourcepub fn with_align(content: String, align: TextAlign) -> Self
pub fn with_align(content: String, align: TextAlign) -> Self
Create a cell with specific alignment
Sourcepub fn with_colspan(content: String, colspan: usize) -> Self
pub fn with_colspan(content: String, colspan: usize) -> Self
Create a cell with colspan
Sourcepub fn set_background_color(&mut self, color: Color) -> &mut Self
pub fn set_background_color(&mut self, color: Color) -> &mut Self
Set cell background color
Sourcepub fn set_border_style(&mut self, style: CellBorderStyle) -> &mut Self
pub fn set_border_style(&mut self, style: CellBorderStyle) -> &mut Self
Set cell border style
Sourcepub fn set_rowspan(&mut self, rowspan: usize) -> &mut Self
pub fn set_rowspan(&mut self, rowspan: usize) -> &mut Self
Set rowspan
Sourcepub fn set_colspan(&mut self, colspan: usize) -> &mut Self
pub fn set_colspan(&mut self, colspan: usize) -> &mut Self
Set cell colspan
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 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