pub struct PdfPageAnnotationAttachmentPoints<'a> { /* private fields */ }Expand description
A set of all the attachment points that visually connect a PdfPageAnnotation object
to one or more PdfPageObject objects on a PdfPage.
Implementations§
Source§impl<'a> PdfPageAnnotationAttachmentPoints<'a>
impl<'a> PdfPageAnnotationAttachmentPoints<'a>
Sourcepub fn len(&self) -> PdfPageAnnotationAttachmentPointIndex
pub fn len(&self) -> PdfPageAnnotationAttachmentPointIndex
Returns the number of attachment points in this PdfPageAnnotationAttachmentPoints collection.
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true if this PdfPageAnnotationAttachmentPoints collection is empty.
Sourcepub fn as_range(&self) -> Range<PdfPageAnnotationAttachmentPointIndex>
pub fn as_range(&self) -> Range<PdfPageAnnotationAttachmentPointIndex>
Returns a Range from 0..(number of attachment points) for this
PdfPageAnnotationAttachmentPoints collection.
Sourcepub fn as_range_inclusive(
&self,
) -> RangeInclusive<PdfPageAnnotationAttachmentPointIndex>
pub fn as_range_inclusive( &self, ) -> RangeInclusive<PdfPageAnnotationAttachmentPointIndex>
Returns an inclusive Range from 0..=(number of attachment points - 1) for this
PdfPageAnnotationAttachmentPoints collection.
Sourcepub fn get(
&self,
index: PdfPageAnnotationAttachmentPointIndex,
) -> Result<PdfQuadPoints, PdfiumError>
pub fn get( &self, index: PdfPageAnnotationAttachmentPointIndex, ) -> Result<PdfQuadPoints, PdfiumError>
Returns a single attachment point, expressed as a set of PdfQuadPoints, from this PdfPageAnnotationAttachmentPoints collection.
Sourcepub fn first(&self) -> Result<PdfQuadPoints, PdfiumError>
pub fn first(&self) -> Result<PdfQuadPoints, PdfiumError>
Returns the first attachment point, expressed as a set of PdfQuadPoints, in this PdfPageAnnotationAttachmentPoints collection.
Sourcepub fn last(&self) -> Result<PdfQuadPoints, PdfiumError>
pub fn last(&self) -> Result<PdfQuadPoints, PdfiumError>
Returns the last attachment point, expressed as a set of PdfQuadPoints, in this PdfPageAnnotationAttachmentPoints collection.
Sourcepub fn create_attachment_point_at_end(
&mut self,
attachment_point: PdfQuadPoints,
) -> Result<(), PdfiumError>
pub fn create_attachment_point_at_end( &mut self, attachment_point: PdfQuadPoints, ) -> Result<(), PdfiumError>
Creates a new attachment point from the given set of PdfQuadPoints, and appends it to the end of this PdfPageAnnotationAttachmentPoints collection.
Sourcepub fn set_attachment_point_at_index(
&mut self,
index: PdfPageAnnotationAttachmentPointIndex,
attachment_point: PdfQuadPoints,
) -> Result<(), PdfiumError>
pub fn set_attachment_point_at_index( &mut self, index: PdfPageAnnotationAttachmentPointIndex, attachment_point: PdfQuadPoints, ) -> Result<(), PdfiumError>
Replaces the attachment at the given index in this PdfPageAnnotationAttachmentPoints collection with the given updated set of PdfQuadPoints.
Sourcepub fn iter(&self) -> PdfPageAnnotationAttachmentPointsIterator<'_> ⓘ
pub fn iter(&self) -> PdfPageAnnotationAttachmentPointsIterator<'_> ⓘ
Returns an iterator over all the attachment points in this PdfPageAnnotationAttachmentPoints collection.
Auto Trait Implementations§
impl<'a> Freeze for PdfPageAnnotationAttachmentPoints<'a>
impl<'a> !RefUnwindSafe for PdfPageAnnotationAttachmentPoints<'a>
impl<'a> !Send for PdfPageAnnotationAttachmentPoints<'a>
impl<'a> !Sync for PdfPageAnnotationAttachmentPoints<'a>
impl<'a> Unpin for PdfPageAnnotationAttachmentPoints<'a>
impl<'a> !UnwindSafe for PdfPageAnnotationAttachmentPoints<'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
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>
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>
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