#[non_exhaustive]pub enum AnnotLinkHighlight {
None,
Invert,
Outline,
Push,
}Expand description
Link annotation highlight mode (/H, ISO 32000-1 table 173).
Written on AnnotSpec::Link for viewer click feedback. The static
/AP stream draws border chrome only — modes like Self::Invert and
Self::Push cannot be simulated in a static appearance and are left to
the viewer.
use pdfrum_edit::AnnotLinkHighlight;
assert_eq!(AnnotLinkHighlight::Invert.as_bytes(), b"I");
assert_eq!(AnnotLinkHighlight::Outline.as_bytes(), b"O");Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
No highlighting (/N).
Invert
Invert content (/I). Acrobat default.
Outline
Invert the border (/O).
Push
Depress into the page (/P).
Implementations§
Trait Implementations§
Source§impl Clone for AnnotLinkHighlight
impl Clone for AnnotLinkHighlight
impl Copy for AnnotLinkHighlight
Source§impl Debug for AnnotLinkHighlight
impl Debug for AnnotLinkHighlight
Source§impl Default for AnnotLinkHighlight
impl Default for AnnotLinkHighlight
impl Eq for AnnotLinkHighlight
Source§impl Hash for AnnotLinkHighlight
impl Hash for AnnotLinkHighlight
Source§impl PartialEq for AnnotLinkHighlight
impl PartialEq for AnnotLinkHighlight
impl StructuralPartialEq for AnnotLinkHighlight
Auto Trait Implementations§
impl Freeze for AnnotLinkHighlight
impl RefUnwindSafe for AnnotLinkHighlight
impl Send for AnnotLinkHighlight
impl Sync for AnnotLinkHighlight
impl Unpin for AnnotLinkHighlight
impl UnsafeUnpin for AnnotLinkHighlight
impl UnwindSafe for AnnotLinkHighlight
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<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.