pub struct Table<'a> {
pub property: TableProperty<'a>,
pub grids: TableGrid,
pub rows: Vec<TableRow<'a>>,
}
Expand description
Table
use docx_rust::document::*;
use docx_rust::formatting::*;
let tbl = Table::default()
.property(TableProperty::default())
.push_row(TableRow::default());
Fields§
§property: TableProperty<'a>
§grids: TableGrid
§rows: Vec<TableRow<'a>>
Implementations§
Source§impl<'a> Table<'a>
impl<'a> Table<'a>
pub fn property<T: Into<TableProperty<'a>>>(self, value: T) -> Self
pub fn push_row<T: Into<TableRow<'a>>>(self, row: 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<Table<'a>> for BodyContent<'a>
impl<'a> From<Table<'a>> for BodyContent<'a>
Source§fn from(original: Table<'a>) -> BodyContent<'a>
fn from(original: Table<'a>) -> BodyContent<'a>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for Table<'a>
impl<'a> RefUnwindSafe for Table<'a>
impl<'a> Send for Table<'a>
impl<'a> Sync for Table<'a>
impl<'a> Unpin for Table<'a>
impl<'a> UnwindSafe for Table<'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