pub struct Destination {
pub page_ref: Option<ObjectId>,
pub fit: FitType,
}Expand description
A parsed PDF destination.
Fields§
§page_ref: Option<ObjectId>The target page reference.
fit: FitTypeThe fit type and parameters.
Implementations§
Source§impl Destination
impl Destination
Sourcepub fn from_object(obj: &PdfObject) -> Option<Self>
pub fn from_object(obj: &PdfObject) -> Option<Self>
Parse a destination from a PDF object.
Destinations can be:
- An array: [page /FitType params…]
- A name (named destination — needs resolution from the Names tree)
- A string (named destination)
Trait Implementations§
Source§impl Clone for Destination
impl Clone for Destination
Source§fn clone(&self) -> Destination
fn clone(&self) -> Destination
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Destination
impl RefUnwindSafe for Destination
impl Send for Destination
impl Sync for Destination
impl Unpin for Destination
impl UnsafeUnpin for Destination
impl UnwindSafe for Destination
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