pub struct AnnotationAppearance {
pub has_normal: bool,
pub has_rollover: bool,
pub has_down: bool,
pub states: Vec<String>,
}Expand description
Summary of an annotation’s §12.5.5 appearance dictionary
(Table 168) as surfaced on PdfAnnotation::appearance.
Each of the three entries (/N normal — required, /R rollover,
/D down) is either a single appearance stream or a subdictionary
of streams keyed by appearance state; Self::states is the
union of state names across all three (empty when every present
entry is a single stream).
Fields§
§has_normal: bool/N — normal appearance present (Table 168 requires it, but
the enumeration is tolerant of producers that omit it).
has_rollover: bool/R — rollover appearance present (defaults to /N per
Table 168 when absent).
has_down: bool/D — down appearance present (defaults to /N).
states: Vec<String>Union of appearance-state names across the /N / /R / /D
subdictionaries, sorted and de-duplicated.
Trait Implementations§
Source§impl Clone for AnnotationAppearance
impl Clone for AnnotationAppearance
Source§fn clone(&self) -> AnnotationAppearance
fn clone(&self) -> AnnotationAppearance
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 AnnotationAppearance
impl Debug for AnnotationAppearance
Source§impl Default for AnnotationAppearance
impl Default for AnnotationAppearance
Source§fn default() -> AnnotationAppearance
fn default() -> AnnotationAppearance
Returns the “default value” for a type. Read more
impl Eq for AnnotationAppearance
Source§impl PartialEq for AnnotationAppearance
impl PartialEq for AnnotationAppearance
Source§fn eq(&self, other: &AnnotationAppearance) -> bool
fn eq(&self, other: &AnnotationAppearance) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AnnotationAppearance
Auto Trait Implementations§
impl Freeze for AnnotationAppearance
impl RefUnwindSafe for AnnotationAppearance
impl Send for AnnotationAppearance
impl Sync for AnnotationAppearance
impl Unpin for AnnotationAppearance
impl UnsafeUnpin for AnnotationAppearance
impl UnwindSafe for AnnotationAppearance
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