pub struct PdfPathSegment<'a> { /* private fields */ }Expand description
A single PdfPathSegment in a PdfPathSegments collection.
Implementations§
Source§impl<'a> PdfPathSegment<'a>
impl<'a> PdfPathSegment<'a>
Sourcepub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
pub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
Returns the PdfiumLibraryBindings used by this PdfPathSegment.
Sourcepub fn segment_type(&self) -> PdfPathSegmentType
pub fn segment_type(&self) -> PdfPathSegmentType
Returns the PdfPathSegmentType of this PdfPathSegment.
Sourcepub fn is_close(&self) -> bool
pub fn is_close(&self) -> bool
Returns true if this PdfPathSegment closes the current sub-path.
Sourcepub fn point(&self) -> (PdfPoints, PdfPoints)
pub fn point(&self) -> (PdfPoints, PdfPoints)
Returns the horizontal and vertical destination positions of this PdfPathSegment.
Sourcepub fn x(&self) -> PdfPoints
pub fn x(&self) -> PdfPoints
Returns the horizontal destination position of this PdfPathSegment.
Sourcepub fn y(&self) -> PdfPoints
pub fn y(&self) -> PdfPoints
Returns the vertical destination position of this PdfPathSegment.
Auto Trait Implementations§
impl<'a> Freeze for PdfPathSegment<'a>
impl<'a> !RefUnwindSafe for PdfPathSegment<'a>
impl<'a> !Send for PdfPathSegment<'a>
impl<'a> !Sync for PdfPathSegment<'a>
impl<'a> Unpin for PdfPathSegment<'a>
impl<'a> !UnwindSafe for PdfPathSegment<'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