Struct cli_table::CellStruct
source · pub struct CellStruct { /* private fields */ }
Expand description
Concrete cell of a table
Implementations§
source§impl CellStruct
impl CellStruct
sourcepub fn justify(self, justify: Justify) -> CellStruct
pub fn justify(self, justify: Justify) -> CellStruct
Used to horizontally justify contents of a cell
sourcepub fn align(self, align: Align) -> CellStruct
pub fn align(self, align: Align) -> CellStruct
Used to vertically align the contents of a cell
sourcepub fn padding(self, padding: Padding) -> CellStruct
pub fn padding(self, padding: Padding) -> CellStruct
Used to add padding to the contents of a cell
Trait Implementations§
source§impl Cell for CellStruct
impl Cell for CellStruct
source§fn cell(self) -> CellStruct
fn cell(self) -> CellStruct
Converts raw type to cell of a table
source§impl Style for CellStruct
impl Style for CellStruct
source§fn foreground_color(self, foreground_color: Option<Color>) -> Self
fn foreground_color(self, foreground_color: Option<Color>) -> Self
Used to set foreground color
source§fn background_color(self, background_color: Option<Color>) -> Self
fn background_color(self, background_color: Option<Color>) -> Self
Used to set background color
Auto Trait Implementations§
impl Freeze for CellStruct
impl RefUnwindSafe for CellStruct
impl Send for CellStruct
impl Sync for CellStruct
impl Unpin for CellStruct
impl UnwindSafe for CellStruct
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