Struct pdfium_render::signatures::PdfSignatures
source · pub struct PdfSignatures<'a> { /* private fields */ }Expand description
The collection of PdfSignature objects inside a PdfDocument.
Implementations§
source§impl<'a> PdfSignatures<'a>
impl<'a> PdfSignatures<'a>
sourcepub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
pub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
Returns the PdfiumLibraryBindings used by this PdfSignatures collection.
sourcepub fn len(&self) -> PdfSignatureIndex
pub fn len(&self) -> PdfSignatureIndex
Returns the number of signatures in this PdfSignatures collection.
sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true if this PdfSignatures collection is empty.
sourcepub fn as_range(&self) -> Range<PdfSignatureIndex>
pub fn as_range(&self) -> Range<PdfSignatureIndex>
Returns a Range from 0..(number of signatures) for this PdfSignatures collection.
sourcepub fn as_range_inclusive(&self) -> RangeInclusive<PdfSignatureIndex>
pub fn as_range_inclusive(&self) -> RangeInclusive<PdfSignatureIndex>
Returns an inclusive Range from 0..=(number of signatures - 1)
for this PdfSignatures collection.
sourcepub fn get(
&self,
index: PdfSignatureIndex
) -> Result<PdfSignature<'a>, PdfiumError>
pub fn get( &self, index: PdfSignatureIndex ) -> Result<PdfSignature<'a>, PdfiumError>
Returns a single PdfSignature from this PdfSignatures collection.
sourcepub fn iter(&self) -> PdfSignaturesIterator<'_> ⓘ
pub fn iter(&self) -> PdfSignaturesIterator<'_> ⓘ
Returns an iterator over all the signatures in this PdfSignatures collection.