pub struct PdfLink<'a> { /* private fields */ }Expand description
A single link contained within a PdfPage or a PdfPageAnnotation.
Each link may have a corresponding [PdfAction] that will be triggered when the user interacts with the link, and a [PdfDestination] that indicates the target of any behaviour triggered by the [PdfAction].
Implementations§
Source§impl<'a> PdfLink<'a>
impl<'a> PdfLink<'a>
Sourcepub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
pub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
Returns the PdfiumLibraryBindings used by this PdfLink.
Sourcepub fn action(&self) -> Option<PdfAction<'a>>
pub fn action(&self) -> Option<PdfAction<'a>>
Returns the [PdfAction] associated with this PdfLink, if any.
The action indicates the behaviour that will occur when the user interacts with the link in a PDF viewer. For most links, this will be a local navigation action of type [PdfActionType::GoToDestinationInSameDocument], but the PDF file format supports a variety of other actions.
Sourcepub fn destination(&self) -> Option<PdfDestination<'a>>
pub fn destination(&self) -> Option<PdfDestination<'a>>
Returns the [PdfDestination] associated with this PdfLink, if any.
The destination specifies the page and region, if any, that will be the target of any behaviour that will occur when the user interacts with the link in a PDF viewer.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PdfLink<'a>
impl<'a> !Send for PdfLink<'a>
impl<'a> !Sync for PdfLink<'a>
impl<'a> !UnwindSafe for PdfLink<'a>
impl<'a> Freeze for PdfLink<'a>
impl<'a> Unpin for PdfLink<'a>
impl<'a> UnsafeUnpin for PdfLink<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more