pub struct PdfLink {
pub source_page_index: usize,
pub rect: [f32; 4],
pub target: Option<PdfLinkTarget>,
}Expand description
One Link annotation, ready for a caller to follow.
Fields§
§source_page_index: usize0-based page index — which page in DFS order carries this
annotation in its /Annots array.
rect: [f32; 4]/Rect — clickable bounding rectangle in default user space
(PDF coordinates, origin bottom-left).
target: Option<PdfLinkTarget>Where the link points. None when the annotation has neither
a /Dest nor an /A action this reader recognises (rare —
most PDFs in the wild populate at least one).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PdfLink
impl RefUnwindSafe for PdfLink
impl Send for PdfLink
impl Sync for PdfLink
impl Unpin for PdfLink
impl UnsafeUnpin for PdfLink
impl UnwindSafe for PdfLink
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