pub struct Table<'a> {
pub property: TableProperty<'a>,
pub grids: Vec<TableGrid>,
pub rows: Vec<TableRow<'a>>,
}
Expand description
Table
use docx::document::*;
use docx::formatting::*;
let tbl = Table::default()
.property(TableProperty::default())
.push_grid(vec![1, 2, 3])
.push_grid(TableGrid::default())
.push_row(TableRow::default());
Fields
property: TableProperty<'a>
grids: Vec<TableGrid>
rows: Vec<TableRow<'a>>
Implementations
Trait Implementations
sourceimpl<'a> From<Table<'a>> for BodyContent<'a>
impl<'a> From<Table<'a>> for BodyContent<'a>
sourcefn 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> 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more