#[non_exhaustive]pub enum ViewSpec {
Xyz {
left: Option<f64>,
top: Option<f64>,
zoom: Option<f64>,
},
Fit,
FitH(Option<f64>),
FitV(Option<f64>),
FitR {
left: f64,
bottom: f64,
right: f64,
top: f64,
},
FitB,
FitBH(Option<f64>),
FitBV(Option<f64>),
}Expand description
Outline view spec, mirroring PDF’s /Dest array shape.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Xyz
[/XYZ left top zoom] — null components keep the current value.
Fit
[/Fit].
FitH(Option<f64>)
[/FitH top].
FitV(Option<f64>)
[/FitV left].
FitR
[/FitR left bottom right top].
FitB
[/FitB].
FitBH(Option<f64>)
[/FitBH top].
FitBV(Option<f64>)
[/FitBV left].
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ViewSpec
impl RefUnwindSafe for ViewSpec
impl Send for ViewSpec
impl Sync for ViewSpec
impl Unpin for ViewSpec
impl UnsafeUnpin for ViewSpec
impl UnwindSafe for ViewSpec
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