Struct pdfium_render::prelude::PdfClipPathSegments
source · [−]pub struct PdfClipPathSegments<'a> { /* private fields */ }Expand description
The collection of PdfPathSegment objects inside a single path within a clip path.
Trait Implementations
sourceimpl<'a> PdfPathSegments<'a> for PdfClipPathSegments<'a>
impl<'a> PdfPathSegments<'a> for PdfClipPathSegments<'a>
sourcefn bindings(&self) -> &'a dyn PdfiumLibraryBindings
fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
Returns the PdfiumLibraryBindings used by this PdfPathSegments collection.
sourcefn len(&self) -> PdfPathSegmentIndex
fn len(&self) -> PdfPathSegmentIndex
Returns the number of path segments in this PdfPathSegments collection.
sourcefn get(
&self,
index: PdfPathSegmentIndex
) -> Result<PdfPathSegment<'a>, PdfiumError>
fn get(
&self,
index: PdfPathSegmentIndex
) -> Result<PdfPathSegment<'a>, PdfiumError>
Returns a single PdfPathSegment from this PdfPathSegments collection.
sourcefn iter(&'a self) -> PdfPathSegmentsIterator<'a>ⓘNotable traits for PdfPathSegmentsIterator<'a>impl<'a> Iterator for PdfPathSegmentsIterator<'a> type Item = PdfPathSegment<'a>;
fn iter(&'a self) -> PdfPathSegmentsIterator<'a>ⓘNotable traits for PdfPathSegmentsIterator<'a>impl<'a> Iterator for PdfPathSegmentsIterator<'a> type Item = PdfPathSegment<'a>;
Returns an iterator over all the path segments in this PdfPathSegments collection.
sourcefn is_empty(&self) -> bool
fn is_empty(&self) -> bool
Returns
true if this PdfPathSegments collection is empty.sourcefn as_range(&self) -> Range<PdfPathSegmentIndex>
fn as_range(&self) -> Range<PdfPathSegmentIndex>
Returns a Range from
0..(number of path segments) for this PdfPathSegments collection.sourcefn as_range_inclusive(&self) -> RangeInclusive<PdfPathSegmentIndex>
fn as_range_inclusive(&self) -> RangeInclusive<PdfPathSegmentIndex>
Returns an inclusive Range from
0..=(number of path segments - 1) for this PdfPathSegments collection.Auto Trait Implementations
impl<'a> !RefUnwindSafe for PdfClipPathSegments<'a>
impl<'a> !Send for PdfClipPathSegments<'a>
impl<'a> !Sync for PdfClipPathSegments<'a>
impl<'a> Unpin for PdfClipPathSegments<'a>
impl<'a> !UnwindSafe for PdfClipPathSegments<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more