Struct comfy_table::Cell
source · pub struct Cell { /* private fields */ }
Expand description
A stylable table cell with content.
Implementations§
source§impl Cell
impl Cell
sourcepub fn set_delimiter(self, delimiter: char) -> Self
pub fn set_delimiter(self, delimiter: char) -> Self
Set the delimiter used to split text for this cell.
Normal text uses spaces (
) as delimiters. This is necessary to help comfy-table
understand the concept of words.
sourcepub fn set_alignment(self, alignment: CellAlignment) -> Self
pub fn set_alignment(self, alignment: CellAlignment) -> Self
Set the alignment of content for this cell.
Setting this overwrites alignment settings of the Column for this specific cell.
use comfy_table::CellAlignment;
use comfy_table::Cell;
let mut cell = Cell::new("Some content")
.set_alignment(CellAlignment::Center);
Trait Implementations§
Auto Trait Implementations§
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