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.
Auto Trait Implementations§
impl<'a> Freeze for PdfSignatures<'a>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more