pub struct PageAdditionalActions {
pub on_open: Option<OutlineAction>,
pub on_close: Option<OutlineAction>,
}Expand description
Page-level /AA (additional actions) — open and close hooks the
PDF viewer fires when a page becomes / leaves visible. Either
hook is optional; both are passed through verbatim from the
producer’s action dict.
Fields§
§on_open: Option<OutlineAction>/O — fired when the page becomes visible.
on_close: Option<OutlineAction>/C — fired when the page leaves visibility.
Implementations§
Source§impl PageAdditionalActions
impl PageAdditionalActions
pub fn is_empty(&self) -> bool
Sourcepub fn merge_over(&self, other: &PageAdditionalActions) -> PageAdditionalActions
pub fn merge_over(&self, other: &PageAdditionalActions) -> PageAdditionalActions
Merge other under self — self’s Some actions win.
Trait Implementations§
Source§impl Clone for PageAdditionalActions
impl Clone for PageAdditionalActions
Source§fn clone(&self) -> PageAdditionalActions
fn clone(&self) -> PageAdditionalActions
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 PageAdditionalActions
impl Debug for PageAdditionalActions
Source§impl Default for PageAdditionalActions
impl Default for PageAdditionalActions
Source§fn default() -> PageAdditionalActions
fn default() -> PageAdditionalActions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PageAdditionalActions
impl RefUnwindSafe for PageAdditionalActions
impl Send for PageAdditionalActions
impl Sync for PageAdditionalActions
impl Unpin for PageAdditionalActions
impl UnsafeUnpin for PageAdditionalActions
impl UnwindSafe for PageAdditionalActions
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