pub struct Viewer {
pub layout: Option<PageLayout>,
pub mode: Option<PageMode>,
pub open_to: Option<usize>,
}Expand description
Viewer preferences written to the catalog: initial layout, navigation mode, and the page opened at document start (ISO 32000 §7.7.2).
Fields§
§layout: Option<PageLayout>/PageLayout, omitted when None.
mode: Option<PageMode>/PageMode, omitted when None.
open_to: Option<usize>Page index opened via /OpenAction, keeping the viewer’s current
position and zoom, omitted when None.
Trait Implementations§
impl StructuralPartialEq for Viewer
Auto Trait Implementations§
impl Freeze for Viewer
impl RefUnwindSafe for Viewer
impl Send for Viewer
impl Sync for Viewer
impl Unpin for Viewer
impl UnsafeUnpin for Viewer
impl UnwindSafe for Viewer
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