pub struct TableCell<'a> {
pub property: TableCellProperty,
pub content: Vec<TableCellContent<'a>>,
}
Expand description
Table Cell
use docx_rust::document::*;
use docx_rust::formatting::*;
let cell = TableCell::from(Paragraph::default());
let cell = TableCell::paragraph(Paragraph::default())
.property(TableCellProperty::default());
Fields§
§property: TableCellProperty
§content: Vec<TableCellContent<'a>>
Implementations§
Source§impl<'a> TableCell<'a>
impl<'a> TableCell<'a>
pub fn property<T: Into<TableCellProperty>>(self, value: T) -> Self
pub fn paragraph<T: Into<Paragraph<'a>>>(par: T) -> Self
pub fn iter_text(&self) -> impl Iterator<Item = &Cow<'a, str>>
pub fn iter_text_mut(&mut self) -> impl Iterator<Item = &mut Cow<'a, str>>
pub fn replace_text<'b, I, T, S>(&mut self, dic: T) -> DocxResult<()>
Trait Implementations§
Source§impl<'a> From<TableCell<'a>> for BodyContent<'a>
impl<'a> From<TableCell<'a>> for BodyContent<'a>
Source§fn from(original: TableCell<'a>) -> BodyContent<'a>
fn from(original: TableCell<'a>) -> BodyContent<'a>
Converts to this type from the input type.
Source§impl<'a> From<TableCell<'a>> for TableRowContent<'a>
impl<'a> From<TableCell<'a>> for TableRowContent<'a>
Auto Trait Implementations§
impl<'a> Freeze for TableCell<'a>
impl<'a> RefUnwindSafe for TableCell<'a>
impl<'a> Send for TableCell<'a>
impl<'a> Sync for TableCell<'a>
impl<'a> Unpin for TableCell<'a>
impl<'a> UnwindSafe for TableCell<'a>
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