Struct pdfium_render::attachments::PdfAttachments
source · [−]pub struct PdfAttachments<'a> { /* private fields */ }Expand description
The collection of PdfAttachment objects embedded in a PdfDocument.
Implementations
sourceimpl<'a> PdfAttachments<'a>
impl<'a> PdfAttachments<'a>
sourcepub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
pub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
Returns the PdfiumLibraryBindings used by this PdfAttachments collection.
sourcepub fn len(&self) -> PdfAttachmentIndex
pub fn len(&self) -> PdfAttachmentIndex
Returns the number of attachments in this PdfAttachments collection.
sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true if this PdfAttachments collection is empty.
sourcepub fn as_range(&self) -> Range<PdfAttachmentIndex>
pub fn as_range(&self) -> Range<PdfAttachmentIndex>
Returns a Range from 0..(number of attachments) for this PdfAttachments collection.
sourcepub fn as_range_inclusive(&self) -> RangeInclusive<PdfAttachmentIndex>
pub fn as_range_inclusive(&self) -> RangeInclusive<PdfAttachmentIndex>
Returns an inclusive Range from 0..=(number of attachments - 1)
for this PdfAttachments collection.
sourcepub fn get(
&self,
index: PdfAttachmentIndex
) -> Result<PdfAttachment<'a>, PdfiumError>
pub fn get(
&self,
index: PdfAttachmentIndex
) -> Result<PdfAttachment<'a>, PdfiumError>
Returns a single PdfAttachment from this PdfAttachments collection.
sourcepub fn iter(&self) -> PdfAttachmentsIterator<'_>ⓘNotable traits for PdfAttachmentsIterator<'a>impl<'a> Iterator for PdfAttachmentsIterator<'a> type Item = PdfAttachment<'a>;
pub fn iter(&self) -> PdfAttachmentsIterator<'_>ⓘNotable traits for PdfAttachmentsIterator<'a>impl<'a> Iterator for PdfAttachmentsIterator<'a> type Item = PdfAttachment<'a>;
Returns an iterator over all the attachments in this PdfAttachments collection.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for PdfAttachments<'a>
impl<'a> !Send for PdfAttachments<'a>
impl<'a> !Sync for PdfAttachments<'a>
impl<'a> Unpin for PdfAttachments<'a>
impl<'a> !UnwindSafe for PdfAttachments<'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