pub struct PdfPageTextSearch<'a> { /* private fields */ }Expand description
Yields the results of searching for a given string within the collection of Unicode characters visible on a single PdfPage.
Implementations§
Source§impl<'a> PdfPageTextSearch<'a>
impl<'a> PdfPageTextSearch<'a>
Sourcepub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
pub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
Returns the PdfiumLibraryBindings used by this PdfPageTextSearch object.
Sourcepub fn find_next(&self) -> Option<PdfPageTextSegments<'_>>
pub fn find_next(&self) -> Option<PdfPageTextSegments<'_>>
Returns the next search result yielded by this PdfPageTextSearch object in the direction PdfSearchDirection::SearchForward.
Sourcepub fn find_previous(&self) -> Option<PdfPageTextSegments<'_>>
pub fn find_previous(&self) -> Option<PdfPageTextSegments<'_>>
Returns the next search result yielded by this PdfPageTextSearch object in the direction PdfSearchDirection::SearchBackward.
Sourcepub fn get_next_result(
&self,
direction: PdfSearchDirection,
) -> Option<PdfPageTextSegments<'_>>
pub fn get_next_result( &self, direction: PdfSearchDirection, ) -> Option<PdfPageTextSegments<'_>>
Returns the next search result yielded by this PdfPageTextSearch object in the given direction.
Sourcepub fn iter(
&self,
direction: PdfSearchDirection,
) -> PdfPageTextSearchIterator<'_> ⓘ
pub fn iter( &self, direction: PdfSearchDirection, ) -> PdfPageTextSearchIterator<'_> ⓘ
Returns an iterator over all search results yielded by this PdfPageTextSearch object in the given direction.
Trait Implementations§
Source§impl<'a> Drop for PdfPageTextSearch<'a>
impl<'a> Drop for PdfPageTextSearch<'a>
Source§fn drop(&mut self)
fn drop(&mut self)
Closes this PdfPageTextSearch object, releasing held memory.
Auto Trait Implementations§
impl<'a> Freeze for PdfPageTextSearch<'a>
impl<'a> !RefUnwindSafe for PdfPageTextSearch<'a>
impl<'a> !Send for PdfPageTextSearch<'a>
impl<'a> !Sync for PdfPageTextSearch<'a>
impl<'a> Unpin for PdfPageTextSearch<'a>
impl<'a> !UnwindSafe for PdfPageTextSearch<'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