pub struct OutlineEntry {
pub title: String,
pub level: u32,
pub page_index: usize,
pub y_position: f64,
}Expand description
An outline/bookmark entry for PDF generation.
Fields§
§title: StringThe heading text.
level: u32Heading level (1 for Heading1, 2 for Heading2, etc.).
page_index: usize0-based page index this heading appears on.
y_position: f64Y position on the page (in points from top).
Trait Implementations§
Source§impl Clone for OutlineEntry
impl Clone for OutlineEntry
Source§fn clone(&self) -> OutlineEntry
fn clone(&self) -> OutlineEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OutlineEntry
impl RefUnwindSafe for OutlineEntry
impl Send for OutlineEntry
impl Sync for OutlineEntry
impl Unpin for OutlineEntry
impl UnsafeUnpin for OutlineEntry
impl UnwindSafe for OutlineEntry
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