#[non_exhaustive]pub enum AnnotRemoteDest {
Page {
page: i64,
view: AnnotGoToView,
},
Named(String),
}Expand description
Remote destination for AnnotLinkAction::GoToR.
Remote /D values use a page number (not a page object ref) or a
named-destination string in the remote file.
use pdfrum_edit::{AnnotGoToView, AnnotRemoteDest};
let _ = AnnotRemoteDest::Page {
page: 0,
view: AnnotGoToView::Fit,
};
let _ = AnnotRemoteDest::Named(String::from("Chapter1"));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.
Page
Explicit destination: page number + view.
Fields
§
view: AnnotGoToViewHow to display that page.
Named(String)
Named destination string in the remote file.
Trait Implementations§
Source§impl Clone for AnnotRemoteDest
impl Clone for AnnotRemoteDest
Source§impl Debug for AnnotRemoteDest
impl Debug for AnnotRemoteDest
Source§impl PartialEq for AnnotRemoteDest
impl PartialEq for AnnotRemoteDest
impl StructuralPartialEq for AnnotRemoteDest
Auto Trait Implementations§
impl Freeze for AnnotRemoteDest
impl RefUnwindSafe for AnnotRemoteDest
impl Send for AnnotRemoteDest
impl Sync for AnnotRemoteDest
impl Unpin for AnnotRemoteDest
impl UnsafeUnpin for AnnotRemoteDest
impl UnwindSafe for AnnotRemoteDest
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.