Struct pdfium_render::pages::PdfPages
source · [−]pub struct PdfPages<'a> { /* private fields */ }Expand description
The collection of PdfPage objects inside a PdfDocument.
Implementations
sourceimpl<'a> PdfPages<'a>
impl<'a> PdfPages<'a>
sourcepub fn len(&self) -> PdfPageIndex
pub fn len(&self) -> PdfPageIndex
Returns the number of pages in this PdfPages collection.
sourcepub fn as_range(&self) -> Range<PdfPageIndex>
pub fn as_range(&self) -> Range<PdfPageIndex>
Returns a Range from 0..(number of pages) for this PdfPages collection.
sourcepub fn get(&self, index: PdfPageIndex) -> Result<PdfPage<'_>, PdfiumError>
pub fn get(&self, index: PdfPageIndex) -> Result<PdfPage<'_>, PdfiumError>
sourcepub fn page_mode(&self) -> PdfPageMode
pub fn page_mode(&self) -> PdfPageMode
Returns the PdfPageMode setting embedded in the containing PdfDocument.
sourcepub fn iter(&self) -> PdfPagesIterator<'_>ⓘNotable traits for PdfPagesIterator<'a>impl<'a> Iterator for PdfPagesIterator<'a> type Item = PdfPage<'a>;
pub fn iter(&self) -> PdfPagesIterator<'_>ⓘNotable traits for PdfPagesIterator<'a>impl<'a> Iterator for PdfPagesIterator<'a> type Item = PdfPage<'a>;
Returns an iterator over all the pages in this PdfPages collection.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for PdfPages<'a>
impl<'a> !Send for PdfPages<'a>
impl<'a> !Sync for PdfPages<'a>
impl<'a> Unpin for PdfPages<'a>
impl<'a> !UnwindSafe for PdfPages<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more