pub struct PdfPageImageObjectFilters<'a> { /* private fields */ }Expand description
A collection of all the image filters applied to a PdfPageImageObject.
Implementations§
Source§impl<'a> PdfPageImageObjectFilters<'a>
impl<'a> PdfPageImageObjectFilters<'a>
Sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
Returns the number of image filters applied to the parent PdfPageImageObject.
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true if this PdfPageImageObjectFilters collection is empty.
Sourcepub fn as_range(&self) -> Range<PdfPageImageObjectFilterIndex>
pub fn as_range(&self) -> Range<PdfPageImageObjectFilterIndex>
Returns a Range from 0..(number of filters) for this PdfPageImageObjectFilters collection.
Sourcepub fn as_range_inclusive(
&self,
) -> RangeInclusive<PdfPageImageObjectFilterIndex>
pub fn as_range_inclusive( &self, ) -> RangeInclusive<PdfPageImageObjectFilterIndex>
Returns an inclusive Range from 0..=(number of filters - 1) for this PdfPageImageObjectFilters collection.
Sourcepub fn get(
&self,
index: PdfPageImageObjectFilterIndex,
) -> Result<PdfPageImageObjectFilter, PdfiumError>
pub fn get( &self, index: PdfPageImageObjectFilterIndex, ) -> Result<PdfPageImageObjectFilter, PdfiumError>
Returns a single PdfPageImageObjectFilter from this PdfPageImageObjectFilters collection.
Sourcepub fn iter(&self) -> PdfPageImageObjectFiltersIterator<'_> ⓘ
pub fn iter(&self) -> PdfPageImageObjectFiltersIterator<'_> ⓘ
Returns an iterator over all the PdfPageImageObjectFilter objects in this PdfPageImageObjectFilters collection.
Auto Trait Implementations§
impl<'a> Freeze for PdfPageImageObjectFilters<'a>
impl<'a> !RefUnwindSafe for PdfPageImageObjectFilters<'a>
impl<'a> !Send for PdfPageImageObjectFilters<'a>
impl<'a> !Sync for PdfPageImageObjectFilters<'a>
impl<'a> Unpin for PdfPageImageObjectFilters<'a>
impl<'a> !UnwindSafe for PdfPageImageObjectFilters<'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