pub struct Cell { /* private fields */ }
Expand description
Cell structure which represents a formatted column in a row.
Implementations§
Source§impl Cell
Style structure implementation.
impl Cell
Style structure implementation.
Sourcepub fn text_width(&self) -> &Option<usize>
pub fn text_width(&self) -> &Option<usize>
Returns text width
Sourcepub fn text_align(&self) -> &Alignment
pub fn text_align(&self) -> &Alignment
Returns text width
Sourcepub fn set_text_width(self, width: usize) -> Self
pub fn set_text_width(self, width: usize) -> Self
Sets cell text width.
Sourcepub fn set_text_align(self, align: Alignment) -> Self
pub fn set_text_align(self, align: Alignment) -> Self
Sets cell text alignement.
Sourcepub fn set_text_tail(self, tail: &str) -> Self
pub fn set_text_tail(self, tail: &str) -> Self
Sets text truncation tail string.
Sourcepub fn set_text_pad(self, pad: char) -> Self
pub fn set_text_pad(self, pad: char) -> Self
Sets text pad character.
Sourcepub fn build_rows(&self) -> Vec<String>
pub fn build_rows(&self) -> Vec<String>
Returns a formatted cell content as multiline string.
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