pub struct TextMarkupAnnotation {
pub markup_type: TextMarkupType,
pub quad_points: Option<QuadPoints>,
}Expand description
A text markup annotation (Highlight, Underline, Squiggly, StrikeOut).
Fields§
§markup_type: TextMarkupTypeThe markup type.
quad_points: Option<QuadPoints>The quadrilateral points defining the marked-up region.
Implementations§
Source§impl TextMarkupAnnotation
impl TextMarkupAnnotation
Sourcepub fn from_annot(annot: &Annotation<'_>) -> Option<Self>
pub fn from_annot(annot: &Annotation<'_>) -> Option<Self>
Extract text markup properties from an annotation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextMarkupAnnotation
impl RefUnwindSafe for TextMarkupAnnotation
impl Send for TextMarkupAnnotation
impl Sync for TextMarkupAnnotation
impl Unpin for TextMarkupAnnotation
impl UnsafeUnpin for TextMarkupAnnotation
impl UnwindSafe for TextMarkupAnnotation
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more