pub struct Bookmark {
pub title: String,
pub level: usize,
pub page_number: Option<usize>,
pub dest_top: Option<f64>,
}Expand description
A single entry in the PDF document outline (bookmark / table of contents).
Bookmarks are extracted from the /Outlines dictionary in the PDF catalog.
Each bookmark has a title, a nesting level, and optionally a destination
page number and y-coordinate.
Fields§
§title: StringThe bookmark title text.
level: usizeNesting depth (0-indexed). Top-level bookmarks have level 0.
page_number: Option<usize>The 0-indexed destination page number, if resolvable.
dest_top: Option<f64>The y-coordinate on the destination page (top of view), if available.
Trait Implementations§
impl StructuralPartialEq for Bookmark
Auto Trait Implementations§
impl Freeze for Bookmark
impl RefUnwindSafe for Bookmark
impl Send for Bookmark
impl Sync for Bookmark
impl Unpin for Bookmark
impl UnsafeUnpin for Bookmark
impl UnwindSafe for Bookmark
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