pub struct PdfPageTextChars<'a> { /* private fields */ }Expand description
A collection of nominated PdfPageTextChar characters selected from a single PdfPage.
Implementations§
Source§impl<'a> PdfPageTextChars<'a>
impl<'a> PdfPageTextChars<'a>
Sourcepub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
pub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
Returns the PdfiumLibraryBindings used by this PdfPageTextChars collection.
Sourcepub fn first_char_index(&self) -> Option<PdfPageTextCharIndex>
pub fn first_char_index(&self) -> Option<PdfPageTextCharIndex>
Returns the index in the containing PdfPage of the first character in this PdfPageTextChars collection, if any.
Sourcepub fn len(&self) -> PdfPageTextCharIndex
pub fn len(&self) -> PdfPageTextCharIndex
Returns the number of individual characters in this PdfPageTextChars collection.
Sourcepub fn last_char_index(&self) -> Option<PdfPageTextCharIndex>
pub fn last_char_index(&self) -> Option<PdfPageTextCharIndex>
Returns the index in the containing PdfPage of the last character in this PdfPageTextChars collection, if any.
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true if this PdfPageTextChars collection is empty.
Sourcepub fn get(
&self,
index: PdfPageTextCharIndex,
) -> Result<PdfPageTextChar<'_>, PdfiumError>
pub fn get( &self, index: PdfPageTextCharIndex, ) -> Result<PdfPageTextChar<'_>, PdfiumError>
Returns a single PdfPageTextChar from this PdfPageTextChars collection.
Sourcepub fn get_char_at_point(
&self,
x: PdfPoints,
y: PdfPoints,
) -> Option<PdfPageTextChar<'_>>
pub fn get_char_at_point( &self, x: PdfPoints, y: PdfPoints, ) -> Option<PdfPageTextChar<'_>>
Returns the character at the given x and y positions on the containing PdfPage, if any.
Sourcepub fn get_char_near_point(
&self,
x: PdfPoints,
tolerance_x: PdfPoints,
y: PdfPoints,
tolerance_y: PdfPoints,
) -> Option<PdfPageTextChar<'_>>
pub fn get_char_near_point( &self, x: PdfPoints, tolerance_x: PdfPoints, y: PdfPoints, tolerance_y: PdfPoints, ) -> Option<PdfPageTextChar<'_>>
Returns the character near to the given x and y positions on the containing PdfPage, if any. The returned character will be no further from the given positions than the given tolerance values.
Sourcepub fn iter(&self) -> PdfPageTextCharsIterator<'_> ⓘ
pub fn iter(&self) -> PdfPageTextCharsIterator<'_> ⓘ
Returns an iterator over all the characters in this PdfPageTextChars collection.
Auto Trait Implementations§
impl<'a> Freeze for PdfPageTextChars<'a>
impl<'a> !RefUnwindSafe for PdfPageTextChars<'a>
impl<'a> !Send for PdfPageTextChars<'a>
impl<'a> !Sync for PdfPageTextChars<'a>
impl<'a> Unpin for PdfPageTextChars<'a>
impl<'a> !UnwindSafe for PdfPageTextChars<'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