#[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
Source§fn clone(&self) -> AnnotLinkHighlight
fn clone(&self) -> AnnotLinkHighlight
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 moreimpl Copy for AnnotLinkHighlight
Source§impl Debug for AnnotLinkHighlight
impl Debug for AnnotLinkHighlight
Source§impl Default for AnnotLinkHighlight
impl Default for AnnotLinkHighlight
Source§fn default() -> AnnotLinkHighlight
fn default() -> AnnotLinkHighlight
Returns the “default value” for a type. Read more
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