pub struct TableRow<'a> {
pub property: TableRowProperty,
pub cells: Vec<TableRowContent<'a>>,
}
Expand description
Table Row
use docx_rust::document::*;
use docx_rust::formatting::*;
let row = TableRow::default()
.property(TableRowProperty::default())
.push_cell(Paragraph::default())
.push_cell(
TableCell::paragraph(Paragraph::default())
.property(TableCellProperty::default())
);
Fields§
§property: TableRowProperty
§cells: Vec<TableRowContent<'a>>
Implementations§
Source§impl<'a> TableRow<'a>
impl<'a> TableRow<'a>
pub fn property<T: Into<TableRowProperty>>(self, value: T) -> Self
pub fn push_cell<T: Into<TableRowContent<'a>>>(self, cell: 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§
Auto Trait Implementations§
impl<'a> Freeze for TableRow<'a>
impl<'a> RefUnwindSafe for TableRow<'a>
impl<'a> Send for TableRow<'a>
impl<'a> Sync for TableRow<'a>
impl<'a> Unpin for TableRow<'a>
impl<'a> UnwindSafe for TableRow<'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