pub enum AnnotationType {
Show 23 variants
Text,
Link,
FreeText,
Line,
Square,
Circle,
Polygon,
PolyLine,
Highlight,
Underline,
Squiggly,
StrikeOut,
Stamp,
Caret,
Ink,
Popup,
FileAttachment,
Sound,
Widget,
Watermark,
Redact,
Movie,
Unknown,
}Expand description
The type of a PDF annotation (ISO 32000-2 Table 170).
Variants§
Text
A text annotation (sticky note).
Link
A link annotation.
FreeText
A free text annotation.
Line
A line annotation.
Square
A square annotation.
Circle
A circle annotation.
Polygon
A polygon annotation.
PolyLine
A polyline annotation.
Highlight
A highlight annotation.
Underline
An underline annotation.
Squiggly
A squiggly underline annotation.
StrikeOut
A strikeout annotation.
Stamp
A rubber stamp annotation.
Caret
A caret annotation.
Ink
An ink (freehand) annotation.
Popup
A popup annotation.
FileAttachment
A file attachment annotation.
Sound
A sound annotation.
Widget
A widget annotation (form field).
Watermark
A watermark annotation.
Redact
A redaction annotation.
Movie
A movie annotation.
Unknown
An unknown annotation type.
Implementations§
Trait Implementations§
Source§impl Clone for AnnotationType
impl Clone for AnnotationType
Source§fn clone(&self) -> AnnotationType
fn clone(&self) -> AnnotationType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnnotationType
impl Debug for AnnotationType
Source§impl PartialEq for AnnotationType
impl PartialEq for AnnotationType
Source§fn eq(&self, other: &AnnotationType) -> bool
fn eq(&self, other: &AnnotationType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for AnnotationType
impl Eq for AnnotationType
impl StructuralPartialEq for AnnotationType
Auto Trait Implementations§
impl Freeze for AnnotationType
impl RefUnwindSafe for AnnotationType
impl Send for AnnotationType
impl Sync for AnnotationType
impl Unpin for AnnotationType
impl UnsafeUnpin for AnnotationType
impl UnwindSafe for AnnotationType
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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