pub struct Annot {
pub page: usize,
pub rect: (Length, Length, Length, Length),
pub action: AnnotAction,
pub border: Option<(Length, Color)>,
}Expand description
One /Annots entry (upstream Annotation.t + its rect/border payload).
Fields§
§page: usize0-based page index the annotation is attached to.
rect: (Length, Length, Length, Length)(x1, y1, x2, y2) in PDF points, y-up, lower-left/upper-right —
already annotation.ml:22’s (x, y - dpt, x + wid, y + hgt).
action: AnnotAction§border: Option<(Length, Color)>/Border width + /C color (upstream borderopt); None ⇒
/Border [0 0 0] (upstream emits a zero border, NOT the PDF default).
Trait Implementations§
impl StructuralPartialEq for Annot
Auto Trait Implementations§
impl Freeze for Annot
impl RefUnwindSafe for Annot
impl Send for Annot
impl Sync for Annot
impl Unpin for Annot
impl UnsafeUnpin for Annot
impl UnwindSafe for Annot
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