Struct term_data_table::Cell
source · [−]pub struct Cell<'txt> { /* private fields */ }Expand description
A table cell containing some str content.
A cell may span multiple columns by setting the value of col_span.
pad_content will add a space to either side of the cell’s content.
Implementations
sourceimpl<'txt> Cell<'txt>
impl<'txt> Cell<'txt>
pub fn with_content(self, content: impl Into<Cow<'txt, str>>) -> Self
pub fn set_content(&mut self, content: impl Into<Cow<'txt, str>>) -> &mut Self
sourcepub fn with_col_span(self, col_span: usize) -> Self
pub fn with_col_span(self, col_span: usize) -> Self
sourcepub fn set_col_span(&mut self, col_span: usize) -> &mut Self
pub fn set_col_span(&mut self, col_span: usize) -> &mut Self
pub fn with_alignment(self, alignment: Alignment) -> Self
pub fn set_alignment(&mut self, alignment: Alignment) -> &mut Self
pub fn with_padding(self, padding: bool) -> Self
pub fn set_padding(&mut self, padding: bool) -> &mut Self
Trait Implementations
Auto Trait Implementations
impl<'txt> !RefUnwindSafe for Cell<'txt>
impl<'txt> Send for Cell<'txt>
impl<'txt> !Sync for Cell<'txt>
impl<'txt> Unpin for Cell<'txt>
impl<'txt> UnwindSafe for Cell<'txt>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more