pub struct TableCell {
pub meta: NodeMeta,
pub children: Vec<Inline>,
/* private fields */
}Expand description
A single cell of a TableRow.
Fields§
§meta: NodeMetaNode metadata (source span).
children: Vec<Inline>The cell’s inline content.
Implementations§
Source§impl TableCell
impl TableCell
Sourcepub fn with_source(
text: &str,
definitions: &Definitions,
) -> (Self, Vec<Diagnostic>)
pub fn with_source( text: &str, definitions: &Definitions, ) -> (Self, Vec<Diagnostic>)
A cell whose content is text, built as Paragraph::with_source
builds a paragraph. A | in text is content: the writer escapes it.
Sourcepub fn source(&self) -> Option<&str>
pub fn source(&self) -> Option<&str>
The text TableCell::with_source built the cell from.
Trait Implementations§
impl Eq for TableCell
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