pub struct InstrToC {Show 16 fields
pub heading_styles_range: Option<(usize, usize)>,
pub tc_field_level_range: Option<(usize, usize)>,
pub omit_page_numbers_level_range: Option<(usize, usize)>,
pub entry_bookmark_name: Option<String>,
pub styles_with_levels: Vec<StyleWithLevel>,
pub entry_and_page_number_separator: Option<String>,
pub sequence_and_page_numbers_separator: Option<String>,
pub caption_label: Option<String>,
pub caption_label_including_numbers: Option<String>,
pub seq_field_identifier_for_prefix: Option<String>,
pub tc_field_identifier: Option<String>,
pub hyperlink: bool,
pub preserve_tab: bool,
pub preserve_new_line: bool,
pub use_applied_paragraph_line_level: bool,
pub hide_tab_and_page_numbers_in_webview: bool,
}
Fields§
§heading_styles_range: Option<(usize, usize)>
§tc_field_level_range: Option<(usize, usize)>
§omit_page_numbers_level_range: Option<(usize, usize)>
§entry_bookmark_name: Option<String>
§styles_with_levels: Vec<StyleWithLevel>
§entry_and_page_number_separator: Option<String>
§sequence_and_page_numbers_separator: Option<String>
§seq_field_identifier_for_prefix: Option<String>
§tc_field_identifier: Option<String>
§hyperlink: bool
§preserve_tab: bool
§preserve_new_line: bool
§use_applied_paragraph_line_level: bool
§hide_tab_and_page_numbers_in_webview: bool
Implementations§
Source§impl InstrToC
impl InstrToC
pub fn new() -> Self
pub fn with_instr_text(s: &str) -> Self
pub fn heading_styles_range(self, start: usize, end: usize) -> Self
pub fn tc_field_level_range(self, start: usize, end: usize) -> Self
pub fn tc_field_identifier(self, t: impl Into<String>) -> Self
pub fn omit_page_numbers_level_range(self, start: usize, end: usize) -> Self
pub fn entry_and_page_number_separator(self, t: impl Into<String>) -> Self
pub fn entry_bookmark_name(self, t: impl Into<String>) -> Self
pub fn sequence_and_page_numbers_separator(self, t: impl Into<String>) -> Self
pub fn seq_field_identifier_for_prefix(self, t: impl Into<String>) -> Self
pub fn hyperlink(self) -> Self
pub fn preserve_tab(self) -> Self
pub fn preserve_new_line(self) -> Self
pub fn use_applied_paragraph_line_level(self) -> Self
pub fn hide_tab_and_page_numbers_in_webview(self) -> Self
pub fn add_style_with_level(self, s: StyleWithLevel) -> Self
Trait Implementations§
impl StructuralPartialEq for InstrToC
Auto Trait Implementations§
impl Freeze for InstrToC
impl RefUnwindSafe for InstrToC
impl Send for InstrToC
impl Sync for InstrToC
impl Unpin for InstrToC
impl UnwindSafe for InstrToC
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