pub struct PdfPageObjectContentMarks<'a> { /* private fields */ }Expand description
The collection of content marks associated with a PdfPageObject.
Content marks provide a bridge between page objects and the PDF structure tree. Use the PdfPageObjectContentMarks::iter() method to iterate over all marks, or PdfPageObjectContentMarks::get() to access a mark by index.
Implementations§
Source§impl<'a> PdfPageObjectContentMarks<'a>
impl<'a> PdfPageObjectContentMarks<'a>
Sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
Returns the number of content marks associated with this page object.
Sourcepub fn get(&self, index: usize) -> Option<PdfPageObjectContentMark<'_>>
pub fn get(&self, index: usize) -> Option<PdfPageObjectContentMark<'_>>
Returns the content mark at the given index, or None if the index is out of bounds.
Sourcepub fn iter(&self) -> PdfPageObjectContentMarksIterator<'_> ⓘ
pub fn iter(&self) -> PdfPageObjectContentMarksIterator<'_> ⓘ
Returns an iterator over all content marks associated with this page object.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PdfPageObjectContentMarks<'a>
impl<'a> !Send for PdfPageObjectContentMarks<'a>
impl<'a> !Sync for PdfPageObjectContentMarks<'a>
impl<'a> !UnwindSafe for PdfPageObjectContentMarks<'a>
impl<'a> Freeze for PdfPageObjectContentMarks<'a>
impl<'a> Unpin for PdfPageObjectContentMarks<'a>
impl<'a> UnsafeUnpin for PdfPageObjectContentMarks<'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