pub struct OutlineItem {
pub title: String,
pub dest: Option<Destination>,
pub uri: Option<String>,
pub open: bool,
pub children: Vec<OutlineItem>,
}Expand description
One bookmark: a title, an optional navigation target, and nested children.
Fields§
§title: String/Title — the bookmark label (text string; UTF-16BE/PDFDoc decoded).
dest: Option<Destination>The resolved navigation destination (/Dest, or a go-to action’s /D),
when this item carries one.
uri: Option<String>A URI target (/A with /S /URI), or a remote go-to file path
(/S /GoToR /F), when this item links outside the page model.
open: bool/Count > 0: the item is open (its children shown by default).
children: Vec<OutlineItem>Nested child bookmarks (from /First … /Next).
Trait Implementations§
Source§impl Clone for OutlineItem
impl Clone for OutlineItem
Source§fn clone(&self) -> OutlineItem
fn clone(&self) -> OutlineItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OutlineItem
impl Debug for OutlineItem
Source§impl PartialEq for OutlineItem
impl PartialEq for OutlineItem
Source§fn eq(&self, other: &OutlineItem) -> bool
fn eq(&self, other: &OutlineItem) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OutlineItem
Auto Trait Implementations§
impl Freeze for OutlineItem
impl RefUnwindSafe for OutlineItem
impl Send for OutlineItem
impl Sync for OutlineItem
impl Unpin for OutlineItem
impl UnsafeUnpin for OutlineItem
impl UnwindSafe for OutlineItem
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