PdfPathSegments

Trait PdfPathSegments 

Source
pub trait PdfPathSegments<'a> {
    // Required methods
    fn bindings(&self) -> &'a dyn PdfiumLibraryBindings;
    fn len(&self) -> PdfPathSegmentIndex;
    fn get(
        &self,
        index: PdfPathSegmentIndex,
    ) -> Result<PdfPathSegment<'a>, PdfiumError>;
    fn iter(&'a self) -> PdfPathSegmentsIterator<'a> ;

    // Provided methods
    fn is_empty(&self) -> bool { ... }
    fn as_range(&self) -> Range<PdfPathSegmentIndex> { ... }
    fn as_range_inclusive(&self) -> RangeInclusive<PdfPathSegmentIndex> { ... }
}
Expand description

The collection of PdfPathSegment objects inside a path page object, a font glyph path, or a clip path.

Required Methods§

Source

fn bindings(&self) -> &'a dyn PdfiumLibraryBindings

Returns the PdfiumLibraryBindings used by this PdfPathSegments collection.

Source

fn len(&self) -> PdfPathSegmentIndex

Returns the number of path segments in this PdfPathSegments collection.

Source

fn get( &self, index: PdfPathSegmentIndex, ) -> Result<PdfPathSegment<'a>, PdfiumError>

Returns a single PdfPathSegment from this PdfPathSegments collection.

Source

fn iter(&'a self) -> PdfPathSegmentsIterator<'a>

Returns an iterator over all the path segments in this PdfPathSegments collection.

Provided Methods§

Source

fn is_empty(&self) -> bool

Returns true if this PdfPathSegments collection is empty.

Source

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>

Returns an inclusive Range from 0..=(number of path segments - 1) for this PdfPathSegments collection.

Implementors§