Struct pdfium_render::page_annotations::PdfPageAnnotations
source · [−]pub struct PdfPageAnnotations<'a> { /* private fields */ }Expand description
The annotations that have been added to a single PdfPage.
Implementations
sourceimpl<'a> PdfPageAnnotations<'a>
impl<'a> PdfPageAnnotations<'a>
sourcepub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
pub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
Returns the PdfiumLibraryBindings used by this PdfPageAnnotations collection.
sourcepub fn len(&self) -> PdfPageAnnotationIndex
pub fn len(&self) -> PdfPageAnnotationIndex
Returns the total number of annotations that have been added to the containing PdfPage.
sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true if this PdfPageAnnotations collection is empty.
sourcepub fn as_range(&self) -> Range<PdfPageAnnotationIndex>
pub fn as_range(&self) -> Range<PdfPageAnnotationIndex>
Returns a Range from 0..(number of annotations) for this PdfPageAnnotations collection.
sourcepub fn get(
&self,
index: PdfPageAnnotationIndex
) -> Result<PdfPageAnnotation<'_>, PdfiumError>
pub fn get(
&self,
index: PdfPageAnnotationIndex
) -> Result<PdfPageAnnotation<'_>, PdfiumError>
Returns a single PdfPageAnnotation from this PdfPageAnnotations collection.
sourcepub fn iter(&self) -> PdfPageAnnotationsIterator<'_>ⓘNotable traits for PdfPageAnnotationsIterator<'a>impl<'a> Iterator for PdfPageAnnotationsIterator<'a> type Item = PdfPageAnnotation<'a>;
pub fn iter(&self) -> PdfPageAnnotationsIterator<'_>ⓘNotable traits for PdfPageAnnotationsIterator<'a>impl<'a> Iterator for PdfPageAnnotationsIterator<'a> type Item = PdfPageAnnotation<'a>;
Returns an iterator over all the annotations in this PdfPageAnnotations collection.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for PdfPageAnnotations<'a>
impl<'a> !Send for PdfPageAnnotations<'a>
impl<'a> !Sync for PdfPageAnnotations<'a>
impl<'a> Unpin for PdfPageAnnotations<'a>
impl<'a> !UnwindSafe for PdfPageAnnotations<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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