Struct pdfium_render::page_text_chars::PdfPageTextChars
source · [−]pub struct PdfPageTextChars<'a> { /* private fields */ }Implementations
sourceimpl<'a> PdfPageTextChars<'a>
impl<'a> PdfPageTextChars<'a>
sourcepub fn first_char_index(&self) -> PdfPageTextCharIndex
pub fn first_char_index(&self) -> PdfPageTextCharIndex
Returns the index in the containing PdfPage of the first character in this
PdfPageTextChars collection.
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) -> PdfPageTextCharIndex
pub fn last_char_index(&self) -> PdfPageTextCharIndex
Returns the index in the containing PdfPage of the last character in this
PdfPageTextChars collection.
sourcepub fn as_range(&self) -> Range<PdfPageTextCharIndex>
pub fn as_range(&self) -> Range<PdfPageTextCharIndex>
Returns the valid index range of this PdfPageTextChars collection.
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<'_>ⓘNotable traits for PdfPageTextCharsIterator<'a>impl<'a> Iterator for PdfPageTextCharsIterator<'a> type Item = PdfPageTextChar<'a>;
pub fn iter(&self) -> PdfPageTextCharsIterator<'_>ⓘNotable traits for PdfPageTextCharsIterator<'a>impl<'a> Iterator for PdfPageTextCharsIterator<'a> type Item = PdfPageTextChar<'a>;
Returns an iterator over all the characters in this PdfPageTextChars collection.
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more