#[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§fn clone(&self) -> AnnotRemoteDest
fn clone(&self) -> AnnotRemoteDest
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 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