pub struct PdfPageLinks<'a> { /* private fields */ }Expand description
The links contained within a single PdfPage.
Implementations§
Source§impl<'a> PdfPageLinks<'a>
impl<'a> PdfPageLinks<'a>
Sourcepub fn bindings(&self) -> &dyn PdfiumLibraryBindings
pub fn bindings(&self) -> &dyn PdfiumLibraryBindings
Returns the PdfiumLibraryBindings used by this PdfPageLinks collection.
Sourcepub fn len(&self) -> PdfPageLinkIndex
pub fn len(&self) -> PdfPageLinkIndex
Returns the number of links in this PdfPageLinks collection.
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true if this PdfPageLinks collection is empty.
Sourcepub fn as_range(&self) -> Range<PdfPageLinkIndex>
pub fn as_range(&self) -> Range<PdfPageLinkIndex>
Returns a Range from 0..(number of links) for this PdfPageLinks collection.
Sourcepub fn as_range_inclusive(&self) -> RangeInclusive<PdfPageLinkIndex>
pub fn as_range_inclusive(&self) -> RangeInclusive<PdfPageLinkIndex>
Returns an inclusive Range from 0..=(number of links - 1) for this PdfPageLinks collection.
Sourcepub fn get(
&'a self,
index: PdfPageLinkIndex,
) -> Result<PdfLink<'a>, PdfiumError>
pub fn get( &'a self, index: PdfPageLinkIndex, ) -> Result<PdfLink<'a>, PdfiumError>
Returns a single PdfLink from this PdfPageLinks collection.
Sourcepub fn first(&'a self) -> Result<PdfLink<'a>, PdfiumError>
pub fn first(&'a self) -> Result<PdfLink<'a>, PdfiumError>
Returns the first PdfLink object in this PdfPageLinks collection.
Sourcepub fn last(&'a self) -> Result<PdfLink<'a>, PdfiumError>
pub fn last(&'a self) -> Result<PdfLink<'a>, PdfiumError>
Returns the last PdfLink object in this PdfPageLinks collection.
Sourcepub fn link_at_point(&self, x: PdfPoints, y: PdfPoints) -> Option<PdfLink<'_>>
pub fn link_at_point(&self, x: PdfPoints, y: PdfPoints) -> Option<PdfLink<'_>>
Returns the PdfLink object at the given position on the containing page, if any.
Sourcepub fn iter(&self) -> PdfPageLinksIterator<'_> ⓘ
pub fn iter(&self) -> PdfPageLinksIterator<'_> ⓘ
Returns an iterator over all the PdfLink objects in this PdfPageLinks collection.
Auto Trait Implementations§
impl<'a> Freeze for PdfPageLinks<'a>
impl<'a> !RefUnwindSafe for PdfPageLinks<'a>
impl<'a> !Send for PdfPageLinks<'a>
impl<'a> !Sync for PdfPageLinks<'a>
impl<'a> Unpin for PdfPageLinks<'a>
impl<'a> !UnwindSafe for PdfPageLinks<'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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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