pub struct AdvancedTableCell { /* private fields */ }Expand description
Advanced table cell with styling options
Implementations§
Source§impl AdvancedTableCell
impl AdvancedTableCell
Sourcepub fn paragraphs(paragraphs: Vec<String>) -> Self
pub fn paragraphs(paragraphs: Vec<String>) -> Self
Create a cell with paragraphs
Sourcepub fn with_align(self, align: TextAlign) -> Self
pub fn with_align(self, align: TextAlign) -> Self
Set cell alignment
Sourcepub fn with_vertical_align(self, align: VerticalAlign) -> Self
pub fn with_vertical_align(self, align: VerticalAlign) -> Self
Set vertical alignment
Sourcepub fn with_colspan(self, colspan: usize) -> Self
pub fn with_colspan(self, colspan: usize) -> Self
Set column span
Sourcepub fn with_rowspan(self, rowspan: usize) -> Self
pub fn with_rowspan(self, rowspan: usize) -> Self
Set row span
Sourcepub fn with_background(self, color: Color) -> Self
pub fn with_background(self, color: Color) -> Self
Set background color
Sourcepub fn with_padding(self, padding: CellPadding) -> Self
pub fn with_padding(self, padding: CellPadding) -> Self
Set custom padding
Sourcepub fn with_text_color(self, color: Color) -> Self
pub fn with_text_color(self, color: Color) -> Self
Set text color
Trait Implementations§
Source§impl Clone for AdvancedTableCell
impl Clone for AdvancedTableCell
Source§fn clone(&self) -> AdvancedTableCell
fn clone(&self) -> AdvancedTableCell
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AdvancedTableCell
impl RefUnwindSafe for AdvancedTableCell
impl Send for AdvancedTableCell
impl Sync for AdvancedTableCell
impl Unpin for AdvancedTableCell
impl UnwindSafe for AdvancedTableCell
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