pub struct TableWriteBuilder<'a, T>where
T: DocxRow,{ /* private fields */ }Expand description
Implementations§
Source§impl<'a, T> TableWriteBuilder<'a, T>where
T: DocxRow,
impl<'a, T> TableWriteBuilder<'a, T>where
T: DocxRow,
Sourcepub fn new(path: impl Into<PathBuf>, data: &'a [T]) -> TableWriteBuilder<'a, T>
pub fn new(path: impl Into<PathBuf>, data: &'a [T]) -> TableWriteBuilder<'a, T>
Creates a new table write builder.
Sourcepub fn title(self, title: impl Into<String>) -> TableWriteBuilder<'a, T>
pub fn title(self, title: impl Into<String>) -> TableWriteBuilder<'a, T>
Sets a document title (heading above the table).
Sourcepub fn need_header(self, need: bool) -> TableWriteBuilder<'a, T>
pub fn need_header(self, need: bool) -> TableWriteBuilder<'a, T>
Controls whether the header row is emitted.
Sourcepub fn header_style(self, style: TableStyle) -> TableWriteBuilder<'a, T>
pub fn header_style(self, style: TableStyle) -> TableWriteBuilder<'a, T>
Sets the table style.
Sourcepub fn banded_rows(self, enabled: bool) -> TableWriteBuilder<'a, T>
pub fn banded_rows(self, enabled: bool) -> TableWriteBuilder<'a, T>
Enables zebra striping on the table.
Auto Trait Implementations§
impl<'a, T> Freeze for TableWriteBuilder<'a, T>
impl<'a, T> RefUnwindSafe for TableWriteBuilder<'a, T>where
&'a [T]: RefUnwindSafe,
impl<'a, T> Send for TableWriteBuilder<'a, T>
impl<'a, T> Sync for TableWriteBuilder<'a, T>
impl<'a, T> Unpin for TableWriteBuilder<'a, T>
impl<'a, T> UnsafeUnpin for TableWriteBuilder<'a, T>where
&'a [T]: UnsafeUnpin,
impl<'a, T> UnwindSafe for TableWriteBuilder<'a, T>where
&'a [T]: UnwindSafe,
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