Struct pdfium_render::signatures::PdfSignatures
source · [−]pub struct PdfSignatures<'a> { /* private fields */ }Expand description
The collection of PdfSignature objects inside a PdfDocument.
Implementations
sourceimpl<'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<'_>ⓘNotable traits for PdfSignaturesIterator<'a>impl<'a> Iterator for PdfSignaturesIterator<'a> type Item = PdfSignature<'a>;
pub fn iter(&self) -> PdfSignaturesIterator<'_>ⓘNotable traits for PdfSignaturesIterator<'a>impl<'a> Iterator for PdfSignaturesIterator<'a> type Item = PdfSignature<'a>;
Returns an iterator over all the signatures in this PdfSignatures collection.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for PdfSignatures<'a>
impl<'a> !Send for PdfSignatures<'a>
impl<'a> !Sync for PdfSignatures<'a>
impl<'a> Unpin for PdfSignatures<'a>
impl<'a> !UnwindSafe for PdfSignatures<'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