Struct docx_rs::TableOfContents
source · [−]pub struct TableOfContents {
pub instr: InstrToC,
pub items: Vec<TableOfContentsItem>,
pub auto: bool,
pub dirty: bool,
pub alias: Option<String>,
pub page_ref_placeholder: Option<String>,
}
Fields
instr: InstrToC
items: Vec<TableOfContentsItem>
auto: bool
dirty: bool
alias: Option<String>
page_ref_placeholder: Option<String>
Implementations
sourceimpl TableOfContents
impl TableOfContents
pub fn new() -> Self
pub fn heading_styles_range(self, start: usize, end: usize) -> Self
pub fn add_style_with_level(self, s: StyleWithLevel) -> Self
pub fn hyperlink(self) -> Self
pub fn alias(self, a: impl Into<String>) -> Self
pub fn add_item(self, t: TableOfContentsItem) -> Self
pub fn auto(self) -> Self
pub fn dirty(self) -> Self
Trait Implementations
sourceimpl Clone for TableOfContents
impl Clone for TableOfContents
sourcefn clone(&self) -> TableOfContents
fn clone(&self) -> TableOfContents
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TableOfContents
impl Debug for TableOfContents
sourceimpl Default for TableOfContents
impl Default for TableOfContents
sourcefn default() -> TableOfContents
fn default() -> TableOfContents
Returns the “default value” for a type. Read more
sourceimpl PartialEq<TableOfContents> for TableOfContents
impl PartialEq<TableOfContents> for TableOfContents
sourcefn eq(&self, other: &TableOfContents) -> bool
fn eq(&self, other: &TableOfContents) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for TableOfContents
impl Serialize for TableOfContents
impl StructuralPartialEq for TableOfContents
Auto Trait Implementations
impl RefUnwindSafe for TableOfContents
impl Send for TableOfContents
impl Sync for TableOfContents
impl Unpin for TableOfContents
impl UnwindSafe for TableOfContents
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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