pub struct Bookmark {
pub title: String,
pub page: usize,
pub children: Vec<Bookmark>,
}Expand description
One outline entry: a title, the page it jumps to, and nested children.
Fields§
§title: StringText shown in the outline panel.
page: usizeTarget page index, opened keeping the viewer’s current position and zoom.
children: Vec<Bookmark>Nested bookmarks, in reading order.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Bookmark
Auto Trait Implementations§
impl Forget for Bookmark
impl Freeze for Bookmark
impl Move for Bookmark
impl RefUnwindSafe for Bookmark
impl Send for Bookmarkwhere
RawVecInner: Send,
impl Sync for Bookmarkwhere
RawVecInner: Sync,
impl Unpin for Bookmark
impl UnsafeUnpin for Bookmarkwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Bookmark>: UnsafeUnpin,
impl UnwindSafe for Bookmarkwhere
RawVecInner: UnwindSafe,
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