pub struct PdfMetadata<'a> { /* private fields */ }Expand description
A collection of all the metadata tags in a PdfDocument.
Implementations§
Source§impl<'a> PdfMetadata<'a>
impl<'a> PdfMetadata<'a>
Sourcepub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
pub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
Returns the PdfiumLibraryBindings used by this PdfMetadata collection.
Sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
Returns the number of metadata tags in this PdfMetadata collection.
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true if this PdfMetadata collection is empty.
Sourcepub fn get(
&self,
tag: PdfDocumentMetadataTagType,
) -> Option<PdfDocumentMetadataTag>
pub fn get( &self, tag: PdfDocumentMetadataTagType, ) -> Option<PdfDocumentMetadataTag>
Returns one metadata tag from this PdfMetadata collection, if it is defined.
Sourcepub fn iter(&self) -> Iter<'_, PdfDocumentMetadataTag>
pub fn iter(&self) -> Iter<'_, PdfDocumentMetadataTag>
Returns an iterator over all the tags in this PdfMetadata collection.
Auto Trait Implementations§
impl<'a> Freeze for PdfMetadata<'a>
impl<'a> !RefUnwindSafe for PdfMetadata<'a>
impl<'a> !Send for PdfMetadata<'a>
impl<'a> !Sync for PdfMetadata<'a>
impl<'a> Unpin for PdfMetadata<'a>
impl<'a> !UnwindSafe for PdfMetadata<'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