pub struct TableCell {
pub is_header: bool,
pub content: Vec<Span>,
}Expand description
Fields§
§is_header: bool§content: Vec<Span>Implementations§
Source§impl TableCell
impl TableCell
Sourcepub fn new_header() -> Self
pub fn new_header() -> Self
Creates a header cell (<th>) with empty content.
Sourcepub fn with_content(self, content: Vec<Span>) -> Self
pub fn with_content(self, content: Vec<Span>) -> Self
Replaces the inline content of the cell.
Trait Implementations§
impl StructuralPartialEq for TableCell
Auto Trait Implementations§
impl Freeze for TableCell
impl RefUnwindSafe for TableCell
impl Send for TableCell
impl Sync for TableCell
impl Unpin for TableCell
impl UnsafeUnpin for TableCell
impl UnwindSafe for TableCell
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