#[non_exhaustive]pub enum AnnotationTarget {
PageView {
page: u32,
view: ViewSpec,
},
NamedDest(String),
Action(OutlineAction),
}Expand description
What an annotation activates. Mirrors OutlineDestination but
kept distinct because annotations can carry richer action data
(e.g. JavaScript) and have their own resolution rules.
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.
PageView
Explicit /Page N /View [...]. page is 1-based.
NamedDest(String)
/Dest /Name — named destination resolved against the
document’s name tree.
Action(OutlineAction)
/Action <<...>> passthrough.
Trait Implementations§
Source§impl Clone for AnnotationTarget
impl Clone for AnnotationTarget
Source§fn clone(&self) -> AnnotationTarget
fn clone(&self) -> AnnotationTarget
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 moreAuto Trait Implementations§
impl Freeze for AnnotationTarget
impl RefUnwindSafe for AnnotationTarget
impl Send for AnnotationTarget
impl Sync for AnnotationTarget
impl Unpin for AnnotationTarget
impl UnsafeUnpin for AnnotationTarget
impl UnwindSafe for AnnotationTarget
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