pub struct Link {
pub rect: [f32; 4],
pub destination: Option<Destination>,
pub action: Option<Action>,
}Expand description
A typed view of a Link annotation dictionary.
Provides access to the annotation’s rectangle, optional destination,
and optional action. Corresponds to upstream CPDF_Link.
Fields§
§rect: [f32; 4]Annotation rectangle in user space: [x1, y1, x2, y2].
destination: Option<Destination>Destination, if specified via /Dest.
action: Option<Action>Action, if specified via /A.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnsafeUnpin for Link
impl UnwindSafe for Link
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