pub struct TableOfContents { /* private fields */ }Expand description
Table of contents for mapping image files to page names.
Implementations§
Source§impl TableOfContents
impl TableOfContents
pub fn new() -> TableOfContents
Sourcepub fn add_page(&mut self, page_title: &str, page_filename: &str)
pub fn add_page(&mut self, page_title: &str, page_filename: &str)
Adds entry to table of contents.
§Arguments
page_title- Title of page as it will appear in document outline.page_filename- Filename of image to link to.
Sourcepub fn add_page_extra(
&mut self,
page_title: &str,
page_filename: &str,
format: u32,
color: [f32; 3],
)
pub fn add_page_extra( &mut self, page_title: &str, page_filename: &str, format: u32, color: [f32; 3], )
Adds entry to table of contents.
§Arguments
page_title- Title of page as it will appear in document outline.page_filename- Filename of image to link to.format- 0, 1 for italic, 2 for bold, 3 for italic bold.color- R,G,B
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TableOfContents
impl RefUnwindSafe for TableOfContents
impl Send for TableOfContents
impl Sync for TableOfContents
impl Unpin for TableOfContents
impl UnsafeUnpin for TableOfContents
impl UnwindSafe for TableOfContents
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().