pub struct Cell {
pub content: String,
pub column_span: usize,
pub alignment: Alignment,
pub has_padding: bool,
}
Expand description
A cell in a table row.
Fields§
§content: String
The content of the cell.
column_span: usize
The number of columns the cell spans.
alignment: Alignment
The alignment of the cell’s content.
has_padding: bool
Whether the cell’s content should be horizontally padded.
Implementations§
Source§impl Cell
impl Cell
Sourcepub fn with_column_span(self, column_span: usize) -> Self
pub fn with_column_span(self, column_span: usize) -> Self
Sets the number of columns the cell spans.
Sourcepub fn with_alignment(self, alignment: Alignment) -> Self
pub fn with_alignment(self, alignment: Alignment) -> Self
Sets the alignment of the cell’s content.
Sourcepub fn without_padding(self) -> Self
pub fn without_padding(self) -> Self
Disables horizontal padding for the cell.
Trait Implementations§
impl StructuralPartialEq for Cell
Auto Trait Implementations§
impl Freeze for Cell
impl RefUnwindSafe for Cell
impl Send for Cell
impl Sync for Cell
impl Unpin for Cell
impl UnwindSafe for Cell
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