pub struct PdfPagePathObjectSegments<'a> { /* private fields */ }Expand description
The collection of PdfPathSegment objects inside a path page object.
The coordinates of each segment in the returned iterator will be the untransformed, raw values supplied at the time the segment was created. Use the PdfPagePathObjectSegments::transform() function to apply a PdfMatrix transformation matrix to the coordinates of each segment as it is returned.
Implementations§
source§impl<'a> PdfPagePathObjectSegments<'a>
impl<'a> PdfPagePathObjectSegments<'a>
sourcepub fn transform(&self, matrix: PdfMatrix) -> PdfPagePathObjectSegments<'a>
pub fn transform(&self, matrix: PdfMatrix) -> PdfPagePathObjectSegments<'a>
Returns a new iterator over this collection of PdfPathSegment objects that applies the given PdfMatrix to the points in each returned segment.
sourcepub fn raw(&self) -> PdfPagePathObjectSegments<'a>
pub fn raw(&self) -> PdfPagePathObjectSegments<'a>
Returns a new iterator over this collection of PdfPathSegment objects that ensures the points of each returned segment are untransformed raw values.
Trait Implementations§
source§impl<'a> PdfPathSegments<'a> for PdfPagePathObjectSegments<'a>
impl<'a> PdfPathSegments<'a> for PdfPagePathObjectSegments<'a>
source§fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
Returns the PdfiumLibraryBindings used by this PdfPathSegments collection.
source§fn len(&self) -> PdfPathSegmentIndex
fn len(&self) -> PdfPathSegmentIndex
Returns the number of path segments in this PdfPathSegments collection.
source§fn 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.
source§fn iter(&'a self) -> PdfPathSegmentsIterator<'a> ⓘ
fn iter(&'a self) -> PdfPathSegmentsIterator<'a> ⓘ
Returns an iterator over all the path segments in this PdfPathSegments collection.
source§fn is_empty(&self) -> bool
fn is_empty(&self) -> bool
Returns
true if this PdfPathSegments collection is empty.source§fn as_range(&self) -> Range<PdfPathSegmentIndex>
fn as_range(&self) -> Range<PdfPathSegmentIndex>
Returns a Range from
0..(number of path segments) for this PdfPathSegments collection.source§fn 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 PdfPagePathObjectSegments<'a>
impl<'a> !Send for PdfPagePathObjectSegments<'a>
impl<'a> !Sync for PdfPagePathObjectSegments<'a>
impl<'a> Unpin for PdfPagePathObjectSegments<'a>
impl<'a> !UnwindSafe for PdfPagePathObjectSegments<'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