pub struct Annotation {
pub subtype: Subtype,
pub rect: Rect,
pub flags: AnnotFlags,
pub dict: Dict,
pub quad_points: Option<Array>,
}Expand description
One annotation, as every reader in this crate sees it.
Fields§
§subtype: SubtypeThe /Subtype.
rect: Rect/Rect exactly as written: not normalized, and not corrected for
an inverted ordering. The dump prints these numbers verbatim.
flags: AnnotFlags/F.
dict: DictThe source dictionary, for the long tail of per-subtype keys.
quad_points: Option<Array>/QuadPoints, when present.
Implementations§
Source§impl Annotation
impl Annotation
Sourcepub fn rect_for_drawing(&self, has_generated_ap: bool) -> Rect
pub fn rect_for_drawing(&self, has_generated_ap: bool) -> Rect
The rectangle an appearance is drawn into.
A text markup annotation whose appearance we generated draws at its
quadrilaterals’ bounding box rather than at its /Rect; everything
else draws at /Rect.
Trait Implementations§
Source§impl Clone for Annotation
impl Clone for Annotation
Source§impl Debug for Annotation
impl Debug for Annotation
Source§impl PartialEq for Annotation
impl PartialEq for Annotation
impl StructuralPartialEq for Annotation
Auto Trait Implementations§
impl Freeze for Annotation
impl RefUnwindSafe for Annotation
impl Send for Annotation
impl Sync for Annotation
impl Unpin for Annotation
impl UnsafeUnpin for Annotation
impl UnwindSafe for Annotation
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