pub struct PdfClipPath<'a> { /* private fields */ }Expand description
A single clip path, containing zero or more path objects.
Implementations§
Source§impl<'a> PdfClipPath<'a>
impl<'a> PdfClipPath<'a>
Sourcepub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
pub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
Returns the PdfiumLibraryBindings used by this PdfClipPath instance.
Sourcepub fn len(&self) -> PdfClipPathSegmentIndex
pub fn len(&self) -> PdfClipPathSegmentIndex
Returns the number of path objects inside this PdfClipPath instance.
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true if this PdfClipPath instance is empty.
Sourcepub fn as_range(&self) -> Range<PdfClipPathSegmentIndex>
pub fn as_range(&self) -> Range<PdfClipPathSegmentIndex>
Returns a Range from 0..(number of path objects) for this PdfClipPath instance.
Sourcepub fn as_range_inclusive(&self) -> RangeInclusive<PdfClipPathSegmentIndex>
pub fn as_range_inclusive(&self) -> RangeInclusive<PdfClipPathSegmentIndex>
Returns an inclusive Range from 0..=(number of path objects - 1) for this PdfClipPath instance.
Sourcepub fn get(
&self,
index: PdfClipPathSegmentIndex,
) -> Result<PdfClipPathSegments<'a>, PdfiumError>
pub fn get( &self, index: PdfClipPathSegmentIndex, ) -> Result<PdfClipPathSegments<'a>, PdfiumError>
Returns a single PdfClipPathSegments path object from this PdfClipPath instance.
Sourcepub fn iter(&self) -> PdfClipPathIterator<'_> ⓘ
pub fn iter(&self) -> PdfClipPathIterator<'_> ⓘ
Returns an iterator over all the path objects in this PdfClipPath instance.
Trait Implementations§
Source§impl<'a> Drop for PdfClipPath<'a>
impl<'a> Drop for PdfClipPath<'a>
Source§fn drop(&mut self)
fn drop(&mut self)
Closes this PdfClipPath, releasing held memory.
Auto Trait Implementations§
impl<'a> Freeze for PdfClipPath<'a>
impl<'a> !RefUnwindSafe for PdfClipPath<'a>
impl<'a> !Send for PdfClipPath<'a>
impl<'a> !Sync for PdfClipPath<'a>
impl<'a> Unpin for PdfClipPath<'a>
impl<'a> !UnwindSafe for PdfClipPath<'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