#[non_exhaustive]pub enum AnnotGoToView {
Fit,
Xyz {
left: Option<f32>,
top: Option<f32>,
zoom: Option<f32>,
},
FitH {
top: Option<f32>,
},
FitV {
left: Option<f32>,
},
FitR {
left: f32,
bottom: f32,
right: f32,
top: f32,
},
FitB,
FitBH {
top: Option<f32>,
},
FitBV {
left: Option<f32>,
},
}Expand description
Destination view for a AnnotLinkAction::GoTo action.
Mirrors the modes pdfrum_doc::Dest / pdfrum_doc::ZoomMode reads.
Optional coordinates of None write PDF null (leave unchanged).
use pdfrum_edit::AnnotGoToView;
assert!(matches!(AnnotGoToView::Fit, AnnotGoToView::Fit));
assert!(matches!(AnnotGoToView::FitH { top: None }, AnnotGoToView::FitH { top: None }));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.
Fit
Fit the whole page (/Fit).
Xyz
Position at (left, top) with optional zoom (/XYZ).
Fields
FitH
Fit the page width; top is the top edge (/FitH).
FitV
Fit the page height; left is the left edge (/FitV).
FitR
Fit the rectangle (/FitR).
FitB
Fit the bounding box of the page’s contents (/FitB).
FitBH
Fit the bounding box width; top is the top edge (/FitBH).
FitBV
Fit the bounding box height; left is the left edge (/FitBV).
Trait Implementations§
Source§impl Clone for AnnotGoToView
impl Clone for AnnotGoToView
impl Copy for AnnotGoToView
Source§impl Debug for AnnotGoToView
impl Debug for AnnotGoToView
Source§impl PartialEq for AnnotGoToView
impl PartialEq for AnnotGoToView
impl StructuralPartialEq for AnnotGoToView
Auto Trait Implementations§
impl Freeze for AnnotGoToView
impl RefUnwindSafe for AnnotGoToView
impl Send for AnnotGoToView
impl Sync for AnnotGoToView
impl Unpin for AnnotGoToView
impl UnsafeUnpin for AnnotGoToView
impl UnwindSafe for AnnotGoToView
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.